From b2078a3c51f73d8514754924c52c76c2dda25468 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 1 Dec 2018 10:11:24 +0000 Subject: [PATCH] Add a missing initialisation. The variable 'toret' in ssh2_transport_get_specials would have been returned while uninitialised in the case where neither of the if statements in the function set it to true. --- ssh2transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh2transport.c b/ssh2transport.c index 807718d0..8ecd9204 100644 --- a/ssh2transport.c +++ b/ssh2transport.c @@ -1803,7 +1803,7 @@ static bool ssh2_transport_get_specials( struct ssh2_transport_state *s = container_of(ppl, struct ssh2_transport_state, ppl); bool need_separator = false; - bool toret; + bool toret = false; if (ssh_ppl_get_specials(s->higher_layer, add_special, ctx)) { need_separator = true;