зеркало из https://github.com/github/putty.git
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:
Родитель
1074a9be4c
Коммит
b2078a3c51
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче