aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c3
1 files changed, 1 insertions, 2 deletions
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;