in-band: Make in_band_create() always initialize its output argument.
authorBen Pfaff <blp@nicira.com>
Tue, 2 Nov 2010 23:20:36 +0000 (16:20 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 5 Nov 2010 17:20:02 +0000 (10:20 -0700)
This isn't a bug fix but it seems like a good thing to do.

ofproto/in-band.c

index 639f9f5..efc9c8a 100644 (file)
@@ -768,6 +768,7 @@ in_band_create(struct ofproto *ofproto, struct dpif *dpif,
     struct netdev *local_netdev;
     int error;
 
+    *in_bandp = NULL;
     error = dpif_port_get_name(dpif, ODPP_LOCAL,
                                local_name, sizeof local_name);
     if (error) {