diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2016-05-10 23:27:03 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2016-05-10 23:27:03 +0300 |
commit | 771d04e263f16ed496da3573e8b0481d7c25314d (patch) | |
tree | df8f3553b6eab4f3612c491976f4cb49d909cc50 | |
parent | acb48602fc506e8073c477309db707978724b7a5 (diff) | |
download | nasm-771d04e263f16ed496da3573e8b0481d7c25314d.tar.gz |
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>
-rw-r--r-- | preproc.c | 3 |
1 files changed, 2 insertions, 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); } |