diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-01-16 00:01:10 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-01-16 00:01:10 +0000 |
commit | 7b606457320995e2f4790b758a13d26d383ae213 (patch) | |
tree | e57056522b598aee1c15e88ce8607052aa97b7a3 /window-choose.c | |
parent | c9fcb76651cd6685ad33b845bcd0a21771964d37 (diff) | |
parent | 52847a951802fda7a3ce36cdac77c34914b0ccca (diff) | |
download | rtmux-7b606457320995e2f4790b758a13d26d383ae213.tar.gz rtmux-7b606457320995e2f4790b758a13d26d383ae213.tar.bz2 rtmux-7b606457320995e2f4790b758a13d26d383ae213.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'window-choose.c')
-rw-r--r-- | window-choose.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/window-choose.c b/window-choose.c index e18b89a3..edfc9916 100644 --- a/window-choose.c +++ b/window-choose.c @@ -255,7 +255,8 @@ window_choose_data_run(struct window_choose_data *cdata) if (cdata->command == NULL) return; - if (cmd_string_parse(cdata->command, &cmdlist, NULL, 0, &cause) != 0) { + cmdlist = cmd_string_parse(cdata->command, NULL, 0, &cause); + if (cmdlist == NULL) { if (cause != NULL) { *cause = toupper((u_char) *cause); status_message_set(cdata->start_client, "%s", cause); |