diff options
Diffstat (limited to 'cli/src/cli-cmd-snapshot.c')
-rw-r--r-- | cli/src/cli-cmd-snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-snapshot.c b/cli/src/cli-cmd-snapshot.c index 06e00c96b7e..64cbd42ce5a 100644 --- a/cli/src/cli-cmd-snapshot.c +++ b/cli/src/cli-cmd-snapshot.c @@ -131,7 +131,7 @@ cli_cmd_snapshot_help_cbk (struct cli_state *state, struct cli_cmd *snap_cmd = NULL; int count = 0; - cmd = GF_CALLOC (1, sizeof (snapshot_cmds), cli_mt_cli_cmd); + cmd = GF_MALLOC (sizeof (snapshot_cmds), cli_mt_cli_cmd); memcpy (cmd, snapshot_cmds, sizeof (snapshot_cmds)); count = (sizeof (snapshot_cmds) / sizeof (struct cli_cmd)); cli_cmd_sort (cmd, count); |