Commit a32199b3 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

make_xftmpl: Avoid comparing a char with EOF.

parent 64ddb263
...@@ -336,7 +336,7 @@ static BOOL parse_token(struct parser *parser) ...@@ -336,7 +336,7 @@ static BOOL parse_token(struct parser *parser)
if (len + 1 < sizeof(buffer)) if (len + 1 < sizeof(buffer))
buffer[len++] = c; buffer[len++] = c;
} }
if (c == EOF) { if (c != '"') {
fprintf(stderr, "%s: Unterminated string (line %d).\n", fprintf(stderr, "%s: Unterminated string (line %d).\n",
program_name, parser->line_no); program_name, parser->line_no);
parser->error = TRUE; parser->error = TRUE;
......
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