mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Allow empty structs to represent empty Maps.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
5da174817b
commit
c2bb72dfd1
1 file changed
+1
-2
@@ -666,8 +666,7 @@ static void parse_into(xen_session *s, xmlNode *value_node,
|
||||
{
|
||||
if (!is_container_node(value_node, "value") ||
|
||||
value_node->children->type != XML_ELEMENT_NODE ||
|
||||
0 != strcmp((char *)value_node->children->name, "struct") ||
|
||||
value_node->children->children == NULL)
|
||||
0 != strcmp((char *)value_node->children->name, "struct"))
|
||||
{
|
||||
server_error(s,
|
||||
"Expected Map from the server, but didn't get it");
|
||||
|
||||