shithub: trueawk

Download patch

ref: 60447afabcbb99c7060c49364902d71735bbc16b
parent: 994f5f0c289bac7791be212a1e5aae9ff4c6cc06
author: ozan yigit <ozan.yigit@gmail.com>
date: Mon Sep 12 06:48:56 EDT 2022

remove unnecessary variable in qstring

--- a/tran.c
+++ b/tran.c
@@ -563,7 +563,6 @@
 
 char *qstring(const char *is, int delim)	/* collect string up to next delim */
 {
-	const char *os = is;
 	int c, n;
 	const uschar *s = (const uschar *) is;
 	uschar *buf, *bp;
@@ -572,7 +571,7 @@
 		FATAL( "out of space in qstring(%s)", s);
 	for (bp = buf; (c = *s) != delim; s++) {
 		if (c == '\n')
-			SYNTAX( "newline in string %.20s...", os );
+			SYNTAX( "newline in string %.20s...", is );
 		else if (c != '\\')
 			*bp++ = c;
 		else {	/* \something */
--