Skip to content

Commit

Permalink
in-band: Make in_band_create() always initialize its output argument.
Browse files Browse the repository at this point in the history
This isn't a bug fix but it seems like a good thing to do.
  • Loading branch information
blp committed Nov 5, 2010
1 parent f71fb70 commit 928ef38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ofproto/in-band.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 928ef38

Please sign in to comment.