From: Donald Sharp Date: Thu, 2 Feb 2017 00:49:48 +0000 (-0500) Subject: lib: Properly Initialize code X-Git-Tag: frr-3.0-branchpoint~51^2~7 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3d217741c3cc441a9ffb3d2f903c4fb34292638f;p=matthieu%2Ffrr.git 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 --- diff --git a/lib/vty.c b/lib/vty.c index 9e0625e3cb..8d79a6b566 100644 --- a/lib/vty.c +++ b/lib/vty.c @@ -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)