bundle: Avoid GCC 4.5 warning about possibly uninitialized value.
authorBen Pfaff <blp@nicira.com>
Wed, 20 Jul 2011 16:51:29 +0000 (09:51 -0700)
committerBen 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

index 996955f62f011d234e9a0765952d052da0b4d04c..e6b1c252e653386810ab309cc25ba589081fb94f 100644 (file)
@@ -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)) {