aboutsummaryrefslogtreecommitdiffstats
path: root/int_array.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-06-23 12:42:57 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-06-23 12:42:57 +0300
commitec2e54b2c075f30e9499adea22681499e3f6582d (patch)
treeeead84bdf1f41b78f90f00c13e02dd59eae92133 /int_array.c
parent9ccddb999bb2d79c261702f789deb9371090a4ec (diff)
parent44e29458a6355ad64e8d89676a441b224ce76cbc (diff)
downloadegawk-ec2e54b2c075f30e9499adea22681499e3f6582d.tar.gz
egawk-ec2e54b2c075f30e9499adea22681499e3f6582d.tar.bz2
egawk-ec2e54b2c075f30e9499adea22681499e3f6582d.zip
Merge branch 'master' into feature/api-mpfr
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;