diff options
author | H. Peter Anvin <hpa@zytor.com> | 2019-09-12 18:34:14 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2019-09-12 18:34:14 -0700 |
commit | 14f0328aa18b6aeb8b74dc6f73369a992d04ff30 (patch) | |
tree | d2b2563e62106e0c30b312fbb10dd0f2e58e1490 /asm | |
parent | d626f355f6d3eb158968945b64d08411b259153b (diff) | |
download | nasm-14f0328aa18b6aeb8b74dc6f73369a992d04ff30.tar.gz nasm-14f0328aa18b6aeb8b74dc6f73369a992d04ff30.tar.xz nasm-14f0328aa18b6aeb8b74dc6f73369a992d04ff30.zip |
eval: don't try to poke *opflags if opflags is NULL
While changing this code around to not do redundant lookups, dropped
this NULL pointer check. Oops.
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'asm')
-rw-r--r-- | asm/eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -988,7 +988,8 @@ static expr *expr6(void) label_seg = NO_SEG; label_ofs = 1; } else if (is_extern(ltype)) { - *opflags |= OPFLAG_EXTERN; + if (opflags) + *opflags |= OPFLAG_EXTERN; } } addtotemp(type, label_ofs); |