mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 13:23:44 +00:00
lib: initialize vty->of
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
f428cb8a3a
commit
6ef6e4f053
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user