aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorozan yigit <ozan.yigit@gmail.com>2022-09-12 10:48:56 -0400
committerozan yigit <ozan.yigit@gmail.com>2022-09-12 10:48:56 -0400
commit60447afabcbb99c7060c49364902d71735bbc16b (patch)
tree5716f6c7730df2f88fe1d424bd18bb730fce8ae7
parent994f5f0c289bac7791be212a1e5aae9ff4c6cc06 (diff)
downloadone-true-awk-60447afabcbb99c7060c49364902d71735bbc16b.tar.gz
remove unnecessary variable in qstring
-rw-r--r--tran.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tran.c b/tran.c
index c396db4..e1496cd 100644
--- a/tran.c
+++ b/tran.c
@@ -563,7 +563,6 @@ Cell *catstr(Cell *a, Cell *b) /* concatenate a and b */
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 @@ char *qstring(const char *is, int delim) /* collect string up to next delim */
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 */