From 14f0328aa18b6aeb8b74dc6f73369a992d04ff30 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 12 Sep 2019 18:34:14 -0700 Subject: 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) --- asm/eval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asm/eval.c b/asm/eval.c index c99ee11c..0dd7e61a 100644 --- a/asm/eval.c +++ b/asm/eval.c @@ -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); -- cgit v1.2.1