projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8815f11
)
bundle: Avoid GCC 4.5 warning about possibly uninitialized value.
author
Ben Pfaff
<blp@nicira.com>
Wed, 20 Jul 2011 16:51:29 +0000
(09:51 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Wed, 20 Jul 2011 16:59:08 +0000
(09:59 -0700)
This value is not actually uninitialized but GCC 4.5 cannot tell.
lib/bundle.c
patch
|
blob
|
history
diff --git
a/lib/bundle.c
b/lib/bundle.c
index 996955f62f011d234e9a0765952d052da0b4d04c..e6b1c252e653386810ab309cc25ba589081fb94f 100644
(file)
--- a/
lib/bundle.c
+++ b/
lib/bundle.c
@@
-46,6
+46,7
@@
bundle_execute(const struct nx_action_bundle *nab, const struct flow *flow,
flow_hash = flow_hash_fields(flow, ntohs(nab->fields), ntohs(nab->basis));
best = -1;
+ best_hash = 0;
for (i = 0; i < ntohs(nab->n_slaves); i++) {
if (slave_enabled(bundle_get_slave(nab, i), aux)) {