mirror of
https://github.com/cc65/cc65.git
synced 2025-01-05 15:30:44 +00:00
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.
This commit is contained in:
parent
f11ae87ada
commit
0149de4da7
@ -413,6 +413,7 @@ Again:
|
|||||||
case '\"':
|
case '\"':
|
||||||
NextChar ();
|
NextChar ();
|
||||||
I = 0;
|
I = 0;
|
||||||
|
InfoSVal[0] = '\0';
|
||||||
while (C != EOF && C != '\"') {
|
while (C != EOF && C != '\"') {
|
||||||
if (GetEncodedChar (InfoSVal, &I, sizeof InfoSVal) < 0) {
|
if (GetEncodedChar (InfoSVal, &I, sizeof InfoSVal) < 0) {
|
||||||
if (C == EOF) {
|
if (C == EOF) {
|
||||||
|
Loading…
Reference in New Issue
Block a user