From 288b15d0793936fa14b51ed860056f6ce6200c52 Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Thu, 22 Jun 2017 08:26:27 -0400 Subject: Replace malloc+memset with calloc, mostly by using the new ezalloc macro. --- old-extension/bindarr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'old-extension/bindarr.c') diff --git a/old-extension/bindarr.c b/old-extension/bindarr.c index 1a0104db..34e7e983 100644 --- a/old-extension/bindarr.c +++ b/old-extension/bindarr.c @@ -209,8 +209,7 @@ do_bind_array(int nargs) assoc_clear(symbol); - emalloc(aq, array_t *, sizeof(array_t), "do_bind_array"); - memset(aq, '\0', sizeof(array_t)); + ezalloc(aq, array_t *, sizeof(array_t), "do_bind_array"); t = get_array_argument(1, false); -- cgit v1.2.3