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. --- debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'debug.c') diff --git a/debug.c b/debug.c index fc0f94cd..c3bc3009 100644 --- a/debug.c +++ b/debug.c @@ -1371,8 +1371,7 @@ add_item(struct list_item *list, int type, NODE *symbol, char *pname) { struct list_item *d; - emalloc(d, struct list_item *, sizeof(struct list_item), "add_item"); - memset(d, 0, sizeof(struct list_item)); + ezalloc(d, struct list_item *, sizeof(struct list_item), "add_item"); d->commands.next = d->commands.prev = &d->commands; d->number = ++list->number; -- cgit v1.2.3