diff options
author | nicm <nicm> | 2020-04-09 13:53:50 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-09 13:53:50 +0000 |
commit | 315961faeceefae30d3fcce28c3171fdec7e5c5d (patch) | |
tree | 9bfba9448636c417dba5dc6582bd6b825c6450d9 /cmd-switch-client.c | |
parent | b96ac809018c461b55aed66459a68a71dd08047f (diff) | |
download | rtmux-315961faeceefae30d3fcce28c3171fdec7e5c5d.tar.gz rtmux-315961faeceefae30d3fcce28c3171fdec7e5c5d.tar.bz2 rtmux-315961faeceefae30d3fcce28c3171fdec7e5c5d.zip |
Some more, and use of wp->window before wp NULL check in format.c.
Diffstat (limited to 'cmd-switch-client.c')
-rw-r--r-- | cmd-switch-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-switch-client.c b/cmd-switch-client.c index 61677761..cf84c319 100644 --- a/cmd-switch-client.c +++ b/cmd-switch-client.c @@ -73,7 +73,6 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item) return (CMD_RETURN_ERROR); s = item->target.s; wl = item->target.wl; - w = wl->window; wp = item->target.wp; if (args_has(args, 'r')) @@ -115,6 +114,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item) if (item->client == NULL) return (CMD_RETURN_NORMAL); if (wl != NULL && wp != NULL) { + w = wl->window; if (window_push_zoom(w, args_has(self->args, 'Z'))) server_redraw_window(w); window_redraw_active_switch(w, wp); |