Allow empty structs to represent empty Maps.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2007-03-10 14:16:52 +00:00
1 parent 5da174817b
commit c2bb72dfd1
1 file changed
+1 -2
+1 -2
View File
@@ -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");
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.