The branch, hooks has been updated via e533eb24b0d69b8e3b63bf3011e3762236341f9b (commit) from 094848a36d3af498e28e6f00a03135ba419f61a4 (commit)
- Log ----------------------------------------------------------------- commit e533eb24b0d69b8e3b63bf3011e3762236341f9b Author: Nicholas Marriott <nicholas.marri...@gmail.com> Commit: Nicholas Marriott <nicholas.marri...@gmail.com> Fix a couple of warnings. --- cmd-switch-client.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/cmd-switch-client.c b/cmd-switch-client.c index 4c6193d..d05f463 100644 --- a/cmd-switch-client.c +++ b/cmd-switch-client.c @@ -46,7 +46,6 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq) struct client *c = state->c; struct session *s; struct window_pane *wp; - const char *tflag; if (args_has(args, 'r')) { if (c->flags & CLIENT_READONLY) @@ -68,6 +67,8 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq) } else if (args_has(args, 'l')) { if (c->last_session != NULL && session_alive(c->last_session)) s = c->last_session; + else + s = NULL; if (s == NULL) { cmdq_error(cmdq, "can't find last session"); return (CMD_RETURN_ERROR); ----------------------------------------------------------------------- Summary of changes: cmd-switch-client.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) hooks/post-receive -- tmux ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ tmux-cvs mailing list tmux-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-cvs