From: Dale Weiler Date: Fri, 4 Jan 2013 11:58:27 +0000 (+0000) Subject: Remove constant string literal for correction check, use parse_tokval of the current... X-Git-Tag: before-library~372 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=5377835f1e1f4d54a6085a3311cffb3629103ccb;p=xonotic%2Fgmqcc.git Remove constant string literal for correction check, use parse_tokval of the current parser state instead. Accidently left it behind from debugging. --- diff --git a/parser.c b/parser.c index 2d7ebe3..6c507d1 100644 --- a/parser.c +++ b/parser.c @@ -1643,7 +1643,7 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma * other things as well. */ for (i = 0; i < vec_size(parser->correct_variables); i++) { - correct = correct_str(parser->correct_variables[i], "ello"); + correct = correct_str(parser->correct_variables[i], parser_tokval(parser)); if (strcmp(correct, parser_tokval(parser))) { break; } else if (correct) {