diff --git a/src/frontend/parser/lexical.c b/src/frontend/parser/lexical.c index f01a9bf6e..d3007e9aa 100644 --- a/src/frontend/parser/lexical.c +++ b/src/frontend/parser/lexical.c @@ -141,14 +141,13 @@ nloop: for (;;) { + c = cp_readchar(&string, cp_inp_cur); + if (string) { - c = cp_readchar(&string, cp_inp_cur); if (c == '\0') c = '\n'; if (c == ESCAPE) c = '['; - } else { - c = cp_readchar(&string, cp_inp_cur); } gotchar: