From: Ben Pfaff Date: Fri, 14 Aug 2009 20:44:06 +0000 (-0700) Subject: ovs-brcompatd: Fix use of uninitialized svec. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2595cb8cea6498fa66406f5e4d6c3296893a7de8;p=openvswitch ovs-brcompatd: Fix use of uninitialized svec. --- diff --git a/vswitchd/ovs-brcompatd.c b/vswitchd/ovs-brcompatd.c index a510f166..b7ef8470 100644 --- a/vswitchd/ovs-brcompatd.c +++ b/vswitchd/ovs-brcompatd.c @@ -814,6 +814,7 @@ handle_get_bridges_cmd(struct ofpbuf *buffer) /* Get all the real bridges and all the fake ones. */ cfg_read(); + svec_init(&bridges); cfg_get_subsections(&bridges, "bridge"); SVEC_FOR_EACH (i, br_name, &bridges) { const char *iface_name;