From b9ef4eca4104b0761e9ec83141ceb3e38ffc6a72 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 30 Apr 2008 15:33:21 -0700 Subject: [PATCH] Initialize n_flows member in table-hash. Found by valgrind. --- switch/table-hash.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2