Commit 5bd60f46 authored by Carson McDonald's avatar Carson McDonald

End loop if nextc is -1

parent a32fdf3e
......@@ -3704,7 +3704,7 @@ parse_string(parser_state *p)
char flag[4] = { '\0' };
newtok(p);
while (c = nextc(p), ISALPHA(c)) {
while (c = nextc(p), c != -1 && ISALPHA(c)) {
switch (c) {
case 'i': f |= 1; break;
case 'x': f |= 2; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment