From: Wolfgang Bumiller Date: Wed, 2 Jan 2013 09:44:39 +0000 (+0100) Subject: update old_string on failure in ftepp_macro_expand to not segfault on a preprocessor... X-Git-Tag: before-library~396 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dce7a0c72b9855dc81fb8dc78d1d62aa4330b8f7;p=xonotic%2Fgmqcc.git update old_string on failure in ftepp_macro_expand to not segfault on a preprocessor-error inside recursive preprocessor calls --- diff --git a/ftepp.c b/ftepp.c index 21669a8..d9197e5 100644 --- a/ftepp.c +++ b/ftepp.c @@ -652,6 +652,7 @@ static bool ftepp_macro_expand(ftepp_t *ftepp, ppmacro *macro, macroparam *param ftepp->lex = inlex; ftepp_recursion_header(ftepp); if (!ftepp_preprocess(ftepp)) { + old_string = ftepp->output_string; lex_close(ftepp->lex); retval = false; goto cleanup;