summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2014-02-12 20:26:13 +0000
committernicm <nicm>2014-02-12 20:26:13 +0000
commit325396046a3906de02b8697377575caaa80546b5 (patch)
tree5f9b67a5441d77578a65c0d8748dd5c8fc0f95ee
parentc52548f6fd311e4df3076ba4cc6f6ab8849557ac (diff)
Avoid use of uninitialized variable, from Thomas Adam.
-rw-r--r--cmd-switch-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-switch-client.c b/cmd-switch-client.c
index d0544013..99a1ae64 100644
--- a/cmd-switch-client.c
+++ b/cmd-switch-client.c
@@ -61,7 +61,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq)
{
struct args *args = self->args;
struct client *c;
- struct session *s;
+ struct session *s = NULL;
struct winlink *wl = NULL;
struct window *w = NULL;
struct window_pane *wp = NULL;