mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
calloc for confirm-before data since the item needs to start NULL.
This commit is contained in:
@ -72,7 +72,7 @@ cmd_confirm_before_exec(struct cmd *self, struct cmdq_item *item)
|
||||
free(copy);
|
||||
}
|
||||
|
||||
cdata = xmalloc(sizeof *cdata);
|
||||
cdata = xcalloc(1, sizeof *cdata);
|
||||
cdata->cmd = xstrdup(args->argv[0]);
|
||||
|
||||
cmd_get_source(self, &cdata->pi.file, &cdata->pi.line);
|
||||
|
Reference in New Issue
Block a user