diff options
author | Ewan Mellor <ewan@xensource.com> | 2007-03-10 14:16:52 +0000 |
---|---|---|
committer | Ewan Mellor <ewan@xensource.com> | 2007-03-10 14:16:52 +0000 |
commit | c2bb72dfd1f6ce1c8740c128336602c125f39353 (patch) | |
tree | 18c8718d10900182339ed270109890a62d311c4c /tools/libxen/src | |
parent | 5da174817b7b609fa35d1863375a89b42c08dd1e (diff) | |
download | xen-c2bb72dfd1f6ce1c8740c128336602c125f39353.tar.gz xen-c2bb72dfd1f6ce1c8740c128336602c125f39353.tar.bz2 xen-c2bb72dfd1f6ce1c8740c128336602c125f39353.zip |
Allow empty structs to represent empty Maps.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/libxen/src')
-rw-r--r-- | tools/libxen/src/xen_common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/libxen/src/xen_common.c b/tools/libxen/src/xen_common.c index 5d72cab177..b7774c8a27 100644 --- a/tools/libxen/src/xen_common.c +++ b/tools/libxen/src/xen_common.c @@ -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"); |