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 #include #include +#include #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);