]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: initialize vty->of
authorQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 1 Jun 2018 20:13:18 +0000 (20:13 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 6 Jun 2018 16:16:12 +0000 (16:16 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/vty.c

index 9e9e90ef318c6c63faaf3985b164c5a86a749412..831bbe5fc377a418b62f4af7bdf28c24d7e199fc 100644 (file)
--- 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);