summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parser.c b/parser.c
index 123da487..423d7855 100644
--- a/parser.c
+++ b/parser.c
@@ -900,6 +900,8 @@ is_expression:
value = evaluate(stdscan, NULL, &tokval, &op->opflags,
critical, nasm_error, &hints);
i = tokval.t_type;
+ if (!value)
+ goto fail;
if (parse_mref(&o2, value))
goto fail;