diff options
author | nicm <nicm> | 2017-01-15 22:00:56 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-01-15 22:00:56 +0000 |
commit | 52847a951802fda7a3ce36cdac77c34914b0ccca (patch) | |
tree | 7e5ad465e719d32f2a7d9a7c3469dec6d12448a4 /window-choose.c | |
parent | 30548461439f02ed8327f96748035685a1a26ace (diff) |
It is silly for cmd_list_parse to return an integer error when it could
just return NULL.
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); |