From: Egor Date: Sat, 6 Oct 2018 15:30:35 +0000 (+0300) Subject: da65: properly scan empty strings X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0149de4da75e0d03a17f905dcc18c34c131174d3;p=cc65 da65: properly scan empty strings Previously, doing something like `LABEL { NAME ""; ADDR $1000; };` would result in $1000 being labeled as NAME: instead of being unnamed. --- diff --git a/src/da65/scanner.c b/src/da65/scanner.c index 143bb2636..2bb80a8ef 100644 --- a/src/da65/scanner.c +++ b/src/da65/scanner.c @@ -413,6 +413,7 @@ Again: case '\"': NextChar (); I = 0; + InfoSVal[0] = '\0'; while (C != EOF && C != '\"') { if (GetEncodedChar (InfoSVal, &I, sizeof InfoSVal) < 0) { if (C == EOF) {