[ovs-dev] [PATCH] ovsdb: Fix uninitialized data;.
Ethan Jackson
ethan at nicira.com
Thu Mar 10 20:39:14 UTC 2011
This could causes unit tests to fail sometimes.
---
ovsdb/ovsdb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ovsdb/ovsdb.c b/ovsdb/ovsdb.c
index aad8415..d4a27d4 100644
--- a/ovsdb/ovsdb.c
+++ b/ovsdb/ovsdb.c
@@ -132,7 +132,7 @@ static size_t
root_set_size(const struct ovsdb_schema *schema)
{
struct shash_node *node;
- size_t n_root;
+ size_t n_root = 0;
SHASH_FOR_EACH (node, &schema->tables) {
struct ovsdb_table_schema *table = node->data;
--
1.7.4.1
More information about the dev
mailing list