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
Родитель 1074a9be4c
Коммит b2078a3c51
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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