From 829d41bdc8fd4841b97eedf2ae7e6b8309e951e1 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Wed, 12 Jan 2011 17:26:00 -0800 Subject: [PATCH] ovsdb-data: Fix warnings. This commit fixes "may be used uninitialized" warnings in ovsdb-data.c --- lib/ovsdb-data.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ovsdb-data.c b/lib/ovsdb-data.c index 492da7fa..20d333ef 100644 --- a/lib/ovsdb-data.c +++ b/lib/ovsdb-data.c @@ -264,6 +264,7 @@ unwrap_json(const struct json *json, const char *name, || (name && strcmp(json->u.array.elems[0]->u.string, name)) || json->u.array.elems[1]->type != value_type) { + *value = NULL; return ovsdb_syntax_error(json, NULL, "expected [\"%s\", <%s>]", name, json_type_to_string(value_type)); } -- 2.30.2