summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Kanios <keith@kanios.net>2009-07-11 06:18:43 -0500
committerKeith Kanios <keith@kanios.net>2009-07-11 06:18:43 -0500
commit8059902f125174fc2757b555309a647721c88f5a (patch)
tree1f0467c81c92f098e2e2343cd5227d9bbe7d247b
parent891775e5ba9fc368fe67b4f3d213f4924d74a490 (diff)
downloadnasm-8059902f125174fc2757b555309a647721c88f5a.tar.gz
preproc: fix potential bug regarding MMacro->prev and %rep
-rw-r--r--preproc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/preproc.c b/preproc.c
index cf625c29..69c135de 100644
--- a/preproc.c
+++ b/preproc.c
@@ -2768,6 +2768,7 @@ static int do_directive(Token * tline)
tmp_defining = defining;
defining = nasm_malloc(sizeof(MMacro));
+ defining->prev = NULL;
defining->name = NULL; /* flags this macro as a %rep block */
defining->casesense = false;
defining->plus = false;