From: Jesse Gross Date: Wed, 20 Jan 2010 19:19:47 +0000 (-0500) Subject: ovs-vsctl: Prevent uninitialized variable warning. X-Git-Tag: v1.0.0~259^2~269 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=84a0ee89e29cdae2b9cc80ae383a1222ba4f5ad5;p=sliver-openvswitch.git ovs-vsctl: Prevent uninitialized variable warning. 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. --- diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c index f3bb88e2c..c74f1fe05 100644 --- a/utilities/ovs-vsctl.c +++ b/utilities/ovs-vsctl.c @@ -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;