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)