Skip to content

Commit

Permalink
ovs-vsctl: Prevent uninitialized variable warning.
Browse files Browse the repository at this point in the history
The compiler warns about next_cfg being uninitialized but in the cases
where it is unset we will never reach the point where it is used.  This
just sets next_cfg to 0 to stop the whining.
  • Loading branch information
jessegross committed Jan 20, 2010
1 parent 91f227c commit 84a0ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/ovs-vsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ do_vsctl(int argc, char *argv[], struct ovsdb_idl *idl)
const struct ovsrec_open_vswitch *ovs;
enum ovsdb_idl_txn_status status;
struct ds comment, *output;
int64_t next_cfg;
int64_t next_cfg = 0;
int n_output;
int i, start;

Expand Down

0 comments on commit 84a0ee8

Please sign in to comment.