projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91f227c
)
ovs-vsctl: Prevent uninitialized variable warning.
author
Jesse Gross
<jesse@nicira.com>
Wed, 20 Jan 2010 19:19:47 +0000
(14:19 -0500)
committer
Jesse Gross
<jesse@nicira.com>
Wed, 20 Jan 2010 19:24:22 +0000
(14:24 -0500)
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.
utilities/ovs-vsctl.c
patch
|
blob
|
history
diff --git
a/utilities/ovs-vsctl.c
b/utilities/ovs-vsctl.c
index f3bb88e2c3f91d25cd62a3c68286f0976c35b0ad..c74f1fe053cee5f532857ce1dca1a42a7141d998 100644
(file)
--- 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;