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. --- command.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'command.c') diff --git a/command.c b/command.c index a0469bb8..1d804c75 100644 --- a/command.c +++ b/command.c @@ -2707,8 +2707,7 @@ static CMDARG * mk_cmdarg(enum argtype type) { CMDARG *arg; - emalloc(arg, CMDARG *, sizeof(CMDARG), "mk_cmdarg"); - memset(arg, 0, sizeof(CMDARG)); + ezalloc(arg, CMDARG *, sizeof(CMDARG), "mk_cmdarg"); arg->type = type; return arg; } -- cgit v1.2.3