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>
This commit is contained in:
H. Peter Anvin 2019-09-12 18:34:14 -07:00
parent d626f355f6
commit 14f0328aa1

View File

@ -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);