From dce7a0c72b9855dc81fb8dc78d1d62aa4330b8f7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 2 Jan 2013 10:44:39 +0100 Subject: [PATCH] update old_string on failure in ftepp_macro_expand to not segfault on a preprocessor-error inside recursive preprocessor calls --- ftepp.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2