direct-io.hg

changeset 14332:6b057bdf0354

Allow empty structs to represent empty Maps.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Sat Mar 10 14:16:52 2007 +0000 (2007-03-10)
parents 7db52e0ed133
children 798a7dc1ac6d
files tools/libxen/src/xen_common.c
line diff
     1.1 --- a/tools/libxen/src/xen_common.c	Sat Mar 10 17:38:54 2007 +0000
     1.2 +++ b/tools/libxen/src/xen_common.c	Sat Mar 10 14:16:52 2007 +0000
     1.3 @@ -666,8 +666,7 @@ static void parse_into(xen_session *s, x
     1.4      {
     1.5          if (!is_container_node(value_node, "value") ||
     1.6              value_node->children->type != XML_ELEMENT_NODE ||
     1.7 -            0 != strcmp((char *)value_node->children->name, "struct") ||
     1.8 -            value_node->children->children == NULL)
     1.9 +            0 != strcmp((char *)value_node->children->name, "struct"))
    1.10          {
    1.11              server_error(s,
    1.12                           "Expected Map from the server, but didn't get it");