ovs-brcompatd: Fix use of uninitialized svec.
authorBen Pfaff <blp@nicira.com>
Fri, 14 Aug 2009 20:44:06 +0000 (13:44 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 18 Aug 2009 19:36:47 +0000 (12:36 -0700)
vswitchd/ovs-brcompatd.c

index a510f16..b7ef847 100644 (file)
@@ -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;