aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 855b28b08..f1b98a9f3 100644
--- a/src/command.c
+++ b/src/command.c
@@ -30,6 +30,7 @@
#include "log.h"
#include "dbUtils.h"
#include "tag.h"
+#include "utils.h"
#include <assert.h>
#include <stdarg.h>
@@ -140,7 +141,7 @@ static List *commandList;
static CommandEntry *newCommandEntry(void)
{
- CommandEntry *cmd = malloc(sizeof(CommandEntry));
+ CommandEntry *cmd = xmalloc(sizeof(CommandEntry));
cmd->cmd = NULL;
cmd->min = 0;
cmd->max = 0;