mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-21 02:40:56 +00:00
update old_string on failure in ftepp_macro_expand to not segfault on a preprocessor-error inside recursive preprocessor calls
This commit is contained in:
parent
c7280fca52
commit
dce7a0c72b
1 changed files with 1 additions and 0 deletions
1
ftepp.c
1
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;
|
||||
|
|
Loading…
Reference in a new issue