From 771d04e263f16ed496da3573e8b0481d7c25314d Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Tue, 10 May 2016 23:27:03 +0300 Subject: [PATCH] preproc: Don't dereference nil @istk If not input was specified istk = NULL, so don't dereference it. Signed-off-by: Cyrill Gorcunov --- preproc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/preproc.c b/preproc.c index 0c9bf2d3..9dc3d88d 100644 --- a/preproc.c +++ b/preproc.c @@ -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); }