aboutsummaryrefslogtreecommitdiffstats
path: root/str_array.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-06-23 12:45:16 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-06-23 12:45:16 +0300
commit5ea4224acd6effc77359d42436de4804b86f1112 (patch)
tree9d4936e21342b71fd43de7cac311822677caad98 /str_array.c
parent231cb5df34699fd98001e2e124d73da5d2f795f9 (diff)
parent44e29458a6355ad64e8d89676a441b224ce76cbc (diff)
downloadegawk-5ea4224acd6effc77359d42436de4804b86f1112.tar.gz
egawk-5ea4224acd6effc77359d42436de4804b86f1112.tar.bz2
egawk-5ea4224acd6effc77359d42436de4804b86f1112.zip
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'str_array.c')
-rw-r--r--str_array.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/str_array.c b/str_array.c
index fe07ce4b..0f75b300 100644
--- a/str_array.c
+++ b/str_array.c
@@ -325,8 +325,7 @@ str_copy(NODE *symbol, NODE *newsymb)
cursize = symbol->array_size;
/* allocate new table */
- emalloc(new, BUCKET **, cursize * sizeof(BUCKET *), "str_copy");
- memset(new, '\0', cursize * sizeof(BUCKET *));
+ ezalloc(new, BUCKET **, cursize * sizeof(BUCKET *), "str_copy");
old = symbol->buckets;
@@ -666,8 +665,7 @@ grow_table(NODE *symbol)
}
/* allocate new table */
- emalloc(new, BUCKET **, newsize * sizeof(BUCKET *), "grow_table");
- memset(new, '\0', newsize * sizeof(BUCKET *));
+ ezalloc(new, BUCKET **, newsize * sizeof(BUCKET *), "grow_table");
old = symbol->buckets;
symbol->buckets = new;