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