diff options
author | nicm <nicm> | 2021-08-25 06:36:05 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-25 06:36:05 +0000 |
commit | 78da5a3756a9f51f8e49d2975f74a1ea800b58b6 (patch) | |
tree | 064881c0b537e54e67a926ba2d9cff7ee302a02d /cmd-command-prompt.c | |
parent | 841ce74b4303133e0aaf379ba25cdfa7de7971b5 (diff) | |
download | rtmux-78da5a3756a9f51f8e49d2975f74a1ea800b58b6.tar.gz rtmux-78da5a3756a9f51f8e49d2975f74a1ea800b58b6.tar.bz2 rtmux-78da5a3756a9f51f8e49d2975f74a1ea800b58b6.zip |
Start inputs as NULL so not freeing random stack garbage, GitHub issue 2852.
Diffstat (limited to 'cmd-command-prompt.c')
-rw-r--r-- | cmd-command-prompt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-command-prompt.c b/cmd-command-prompt.c index a877897e..bca1a7fc 100644 --- a/cmd-command-prompt.c +++ b/cmd-command-prompt.c @@ -77,7 +77,7 @@ cmd_command_prompt_exec(struct cmd *self, struct cmdq_item *item) const char *type, *s, *input; struct cmd_command_prompt_cdata *cdata; char *tmp, *prompts, *prompt, *next_prompt; - char *inputs, *next_input; + char *inputs = NULL, *next_input; u_int count = args_count(args); int wait = !args_has(args, 'b'), space = 1; |