lib: Properly Initialize code

was_stdio was never set up with a 'correct'
initial value, leading to cases where
we would choose what to do based upon
what was in the stack.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-02-01 19:49:48 -05:00
parent 907ca8e4d5
commit 3d217741c3

View File

@ -2227,7 +2227,7 @@ void
vty_close (struct vty *vty)
{
int i;
bool was_stdio;
bool was_stdio = false;
/* Cancel threads.*/
if (vty->t_read)