summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--asm/eval.c3
1 files changed, 2 insertions, 1 deletions
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);