[ovs-dev] [PATCH 2/2] ovs-vsctl: Fix uninitialized variable.
Jesse Gross
jesse at nicira.com
Wed Jan 27 20:19:41 UTC 2010
When querying a row we could return an uninitialized variable in
some cases if we can't find what we are looking for.
---
utilities/ovs-vsctl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c
index 35a3f39..c7a69fd 100644
--- a/utilities/ovs-vsctl.c
+++ b/utilities/ovs-vsctl.c
@@ -1699,7 +1699,7 @@ static const struct ovsdb_idl_row *
get_row_by_id(struct vsctl_context *ctx, const struct vsctl_table_class *table,
const struct vsctl_row_id *id, const char *record_id)
{
- const struct ovsdb_idl_row *referrer, *final;
+ const struct ovsdb_idl_row *referrer, *final = NULL;
if (!id->table) {
return NULL;
--
1.6.3.3
More information about the dev
mailing list