summaryrefslogtreecommitdiff
path: root/nasmlib.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-05-26 22:49:19 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-05-26 22:49:19 +0000
commitd6696dbe1a2c26a143a6470bd74d471a2ab87db8 (patch)
treed28f2b36b28b465f10973ff6913454464d0e318f /nasmlib.c
parent372aad95472f0b373bd907cda0668f916ee34a0c (diff)
downloadnasm-d6696dbe1a2c26a143a6470bd74d471a2ab87db8.tar.gz
Fix really stupid thinko on my part...
Diffstat (limited to 'nasmlib.c')
-rw-r--r--nasmlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nasmlib.c b/nasmlib.c
index 003e14e8..910c0eee 100644
--- a/nasmlib.c
+++ b/nasmlib.c
@@ -332,14 +332,14 @@ static struct RAA *real_raa_init (int layers)
struct RAA *r;
int i;
- r->layers = layers;
-
if (layers == 0) {
r = nasm_malloc (LEAFSIZ);
+ r->layers = 0;
memset (r->u.l.data, 0, sizeof(r->u.l.data));
r->stepsize = 1L;
} else {
r = nasm_malloc (BRANCHSIZ);
+ r->layers = layers;
for ( i = 0 ; i < RAA_LAYERSIZE ; i++ )
r->u.b.data[i] = NULL;
r->stepsize = RAA_BLKSIZE;