1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

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.
This commit is contained in:
Simon Tatham 2018-12-01 10:11:24 +00:00
parent 1074a9be4c
commit b2078a3c51

View File

@ -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;