preproc: Don't dereference nil @istk
If not input was specified istk = NULL, so don't dereference it. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
acb48602fc
commit
771d04e263
1 changed files with 2 additions and 1 deletions
|
@ -5277,7 +5277,8 @@ static void pp_error_list_macros(int severity)
|
|||
severity |= ERR_PP_LISTMACRO | ERR_NO_SEVERITY;
|
||||
src_get(&saved_line, &saved_fname);
|
||||
|
||||
pp_list_one_macro(istk->mstk, severity);
|
||||
if (istk)
|
||||
pp_list_one_macro(istk->mstk, severity);
|
||||
|
||||
src_set(saved_line, saved_fname);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue