summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-06-01 20:13:18 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-06-06 16:16:12 +0000
commit6ef6e4f0531f34cd5f7930483ed50231fdf6af3a (patch)
tree897a8197a984544029e3d72df6b98073d2055558
parentf428cb8a3a9cef3a1f68be6434f8db6fa9b693ef (diff)
lib: initialize vty->of
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
-rw-r--r--lib/vty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 9e9e90ef31..831bbe5fc3 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -24,6 +24,7 @@
#include <lib/version.h>
#include <sys/types.h>
#include <regex.h>
+#include <stdio.h>
#include "linklist.h"
#include "thread.h"
@@ -1647,6 +1648,7 @@ struct vty *vty_new()
struct vty *new = XCALLOC(MTYPE_VTY, sizeof(struct vty));
new->fd = new->wfd = -1;
+ new->of = stdout;
new->obuf = buffer_new(0); /* Use default buffer size. */
new->buf = XCALLOC(MTYPE_VTY, VTY_BUFSIZ);
new->error_buf = XCALLOC(MTYPE_VTY, VTY_BUFSIZ);