From: Ben Pfaff Date: Wed, 30 Apr 2008 22:33:21 +0000 (-0700) Subject: Initialize n_flows member in table-hash. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9ef4eca4104b0761e9ec83141ceb3e38ffc6a72;p=openvswitch Initialize n_flows member in table-hash. Found by valgrind. --- diff --git a/switch/table-hash.c b/switch/table-hash.c index 46ab27ee..47bbe4a9 100644 --- a/switch/table-hash.c +++ b/switch/table-hash.c @@ -237,6 +237,7 @@ struct sw_table *table_hash_create(unsigned int polynomial, free(th); return NULL; } + th->n_flows = 0; th->bucket_mask = n_buckets - 1; swt = &th->swt;