diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-06-22 08:26:27 -0400 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-06-22 08:26:27 -0400 |
commit | 288b15d0793936fa14b51ed860056f6ce6200c52 (patch) | |
tree | 5de9e9dca8b30e8d168da8661ae88e3ffe2504a3 /gawkapi.c | |
parent | b7d8b6ebcd5dd714bc21acf7637d9a651e2f7ea7 (diff) | |
download | egawk-288b15d0793936fa14b51ed860056f6ce6200c52.tar.gz egawk-288b15d0793936fa14b51ed860056f6ce6200c52.tar.bz2 egawk-288b15d0793936fa14b51ed860056f6ce6200c52.zip |
Replace malloc+memset with calloc, mostly by using the new ezalloc macro.
Diffstat (limited to 'gawkapi.c')
-rw-r--r-- | gawkapi.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1111,9 +1111,8 @@ api_flatten_array_typed(awk_ext_id_t id, alloc_size = sizeof(awk_flat_array_t) + (array->table_size - 1) * sizeof(awk_element_t); - emalloc(*data, awk_flat_array_t *, alloc_size, + ezalloc(*data, awk_flat_array_t *, alloc_size, "api_flatten_array_typed"); - memset(*data, 0, alloc_size); list = assoc_list(array, "@unsorted", ASORTI); |