From: Ethan Jackson Date: Thu, 13 Jan 2011 01:26:00 +0000 (-0800) Subject: ovsdb-data: Fix warnings. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=829d41bdc8fd4841b97eedf2ae7e6b8309e951e1;p=openvswitch ovsdb-data: Fix warnings. This commit fixes "may be used uninitialized" warnings in ovsdb-data.c --- 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)); }