ovsdb-data: Fix warnings.
[openvswitch] / lib / ovsdb-data.c
index 492da7fa5d84051dafca71e7507fec492181e2f3..20d333eff177f6b93633f4b81d3bd627350d7acf 100644 (file)
@@ -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));
     }