summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ovsdb-data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ovsdb-data.c b/lib/ovsdb-data.c
index 492da7fa5..20d333eff 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));
}