ovs-vsctl: Fix uninitialized variable.
authorJesse Gross <jesse@nicira.com>
Wed, 27 Jan 2010 20:08:10 +0000 (15:08 -0500)
committerJesse Gross <jesse@nicira.com>
Wed, 27 Jan 2010 20:46:40 +0000 (15:46 -0500)
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

index 35a3f39..0eef55f 100644 (file)
@@ -1745,6 +1745,7 @@ get_row_by_id(struct vsctl_context *ctx, const struct vsctl_table_class *table,
         return NULL;
     }
 
+    final = NULL;
     if (id->uuid_column) {
         struct ovsdb_datum uuid;