aboutsummaryrefslogtreecommitdiffstats
path: root/int_array.c
diff options
context:
space:
mode:
Diffstat (limited to 'int_array.c')
-rw-r--r--int_array.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/int_array.c b/int_array.c
index 992da4a6..1c309cfd 100644
--- a/int_array.c
+++ b/int_array.c
@@ -458,8 +458,7 @@ int_copy(NODE *symbol, NODE *newsymb)
cursize = symbol->array_size;
/* allocate new table */
- emalloc(new, BUCKET **, cursize * sizeof(BUCKET *), "int_copy");
- memset(new, '\0', cursize * sizeof(BUCKET *));
+ ezalloc(new, BUCKET **, cursize * sizeof(BUCKET *), "int_copy");
old = symbol->buckets;
@@ -842,8 +841,7 @@ grow_int_table(NODE *symbol)
}
/* allocate new table */
- emalloc(new, BUCKET **, newsize * sizeof(BUCKET *), "grow_int_table");
- memset(new, '\0', newsize * sizeof(BUCKET *));
+ ezalloc(new, BUCKET **, newsize * sizeof(BUCKET *), "grow_int_table");
old = symbol->buckets;
symbol->buckets = new;