mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
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
@ -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 New Issue
Block a user