diff --git a/lex.ll b/lex.ll index 026b1b48..d999d8bb 100644 --- a/lex.ll +++ b/lex.ll @@ -724,7 +724,7 @@ lStringConst(YYSTYPE *yylval, SourcePos *pos) std::string str; p = strchr(yytext, '"') + 1; while (*p != '\"') { - char cval; + char cval = '\0'; p = lEscapeChar(p, &cval, pos); str.push_back(cval); }