summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-02-02 01:49:48 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-02-02 01:49:48 +0100
commit3d217741c3cc441a9ffb3d2f903c4fb34292638f (patch)
treeb60cc2ac51871fe1f3343e0502df6b7feeb29b79 /lib
parentlib: Inadvertent assignment in ? operator (diff)
downloadfrr-3d217741c3cc441a9ffb3d2f903c4fb34292638f.tar.xz
frr-3d217741c3cc441a9ffb3d2f903c4fb34292638f.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 9e0625e3c..8d79a6b56 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)