From c2eb869bdb270565b2bb3e368cc61560385d1315 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 11 Sep 2008 11:37:13 -0700 Subject: [PATCH] Use vconn_init() instead of explicit initialization in one last place. Commit b5e16b0723, "Respin "Make vconns keep track of their names and include them in log messages,"" was supposed to do this everywhere, but this instance was evidently missed. --- lib/vconn-stream.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/vconn-stream.c b/lib/vconn-stream.c index c419d530..444778a9 100644 --- a/lib/vconn-stream.c +++ b/lib/vconn-stream.c @@ -296,8 +296,7 @@ new_pstream_vconn(const char *name, int fd, } ps = xmalloc(sizeof *ps); - ps->vconn.class = &pstream_vconn_class; - ps->vconn.connect_status = 0; + vconn_init(&ps->vconn, &pstream_vconn_class, 0, 0, name); ps->fd = fd; ps->accept_cb = accept_cb; *vconnp = &ps->vconn; -- 2.30.2