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 a510f16673215f809c06a9a8b635e42fb685aad5..b7ef84703e60a1165913da75239679392476f7d9 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;