diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-08-14 01:34:54 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-08-14 01:34:54 +0100 |
commit | 54773d23b5ceb779c524dcac6bf3b848886fb6d6 (patch) | |
tree | 5c60007637121f63c8c730a04f4e8e741577c21a /cmd-if-shell.c | |
parent | 4c07367bfe626fce990f5b5b2d00516ae8249a93 (diff) | |
parent | 63aa96864280ff07f706ebbae302b7c15abb964f (diff) | |
download | rtmux-54773d23b5ceb779c524dcac6bf3b848886fb6d6.tar.gz rtmux-54773d23b5ceb779c524dcac6bf3b848886fb6d6.tar.bz2 rtmux-54773d23b5ceb779c524dcac6bf3b848886fb6d6.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'cmd-if-shell.c')
-rw-r--r-- | cmd-if-shell.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/cmd-if-shell.c b/cmd-if-shell.c index 65fbf19b..f4c81074 100644 --- a/cmd-if-shell.c +++ b/cmd-if-shell.c @@ -104,8 +104,6 @@ cmd_if_shell_exec(struct cmd *self, struct cmdq_item *item) cdata->cmd_if = xstrdup(args->argv[1]); if (args->argc == 3) cdata->cmd_else = xstrdup(args->argv[2]); - else - cdata->cmd_else = NULL; if (!args_has(args, 'b')) cdata->client = cmdq_get_client(item); @@ -116,10 +114,7 @@ cmd_if_shell_exec(struct cmd *self, struct cmdq_item *item) if (!args_has(args, 'b')) cdata->item = item; - else - cdata->item = NULL; - memset(&cdata->input, 0, sizeof cdata->input); cmd_get_source(self, &file, &cdata->input.line); if (file != NULL) cdata->input.file = xstrdup(file); |