projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1daf198
)
Initialize n_flows member in table-hash.
author
Ben Pfaff
<blp@nicira.com>
Wed, 30 Apr 2008 22:33:21 +0000
(15:33 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 2 May 2008 00:02:31 +0000
(17:02 -0700)
Found by valgrind.
switch/table-hash.c
patch
|
blob
|
history
diff --git
a/switch/table-hash.c
b/switch/table-hash.c
index 46ab27ee9c60a75b35cf9501d962e1e83f90d1ab..47bbe4a9368f60796e2d69b3095b1d334c67b260 100644
(file)
--- 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;