]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Properly Initialize code
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 2 Feb 2017 00:49:48 +0000 (19:49 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 2 Feb 2017 00:49:48 +0000 (19:49 -0500)
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>
lib/vty.c

index 9e0625e3cb482cf64e3e2e407c4b4ebe6e4b4c80..8d79a6b566289c6b6b06211a90021511ada34729 100644 (file)
--- 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)