summaryrefslogtreecommitdiff
path: root/output/outobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'output/outobj.c')
-rw-r--r--output/outobj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/output/outobj.c b/output/outobj.c
index e62bc3f0..b07a7e49 100644
--- a/output/outobj.c
+++ b/output/outobj.c
@@ -993,7 +993,7 @@ static void obj_deflabel(char *name, int32_t segment,
i = segment / 2;
eb = ebhead;
if (!eb) {
- eb = *ebtail = nasm_malloc(sizeof(*eb));
+ eb = *ebtail = nasm_zalloc(sizeof(*eb));
eb->next = NULL;
ebtail = &eb->next;
}
@@ -1001,7 +1001,7 @@ static void obj_deflabel(char *name, int32_t segment,
if (eb && eb->next)
eb = eb->next;
else {
- eb = *ebtail = nasm_malloc(sizeof(*eb));
+ eb = *ebtail = nasm_zalloc(sizeof(*eb));
eb->next = NULL;
ebtail = &eb->next;
}