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:
Cyrill Gorcunov 2016-05-10 23:27:03 +03:00
parent acb48602fc
commit 771d04e263

View file

@ -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);
}