From: Ben Pfaff Date: Wed, 20 Jul 2011 16:51:29 +0000 (-0700) Subject: bundle: Avoid GCC 4.5 warning about possibly uninitialized value. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=481db4883344161efab4bd5e7580e21411e62c9f;p=openvswitch bundle: Avoid GCC 4.5 warning about possibly uninitialized value. This value is not actually uninitialized but GCC 4.5 cannot tell. --- diff --git a/lib/bundle.c b/lib/bundle.c index 996955f6..e6b1c252 100644 --- 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)) {