aboutsummaryrefslogtreecommitdiff
path: root/window-choose.c
diff options
context:
space:
mode:
Diffstat (limited to 'window-choose.c')
-rw-r--r--window-choose.c3
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);