[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Allow empty structs to represent empty Maps.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1173536212 0
# Node ID 6b057bdf0354700176163d12227f487d5c2f8a4e
# Parent  7db52e0ed1335aa6da5a48dd597effa01a58173b
Allow empty structs to represent empty Maps.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/libxen/src/xen_common.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -r 7db52e0ed133 -r 6b057bdf0354 tools/libxen/src/xen_common.c
--- a/tools/libxen/src/xen_common.c     Sat Mar 10 17:38:54 2007 +0000
+++ b/tools/libxen/src/xen_common.c     Sat Mar 10 14:16:52 2007 +0000
@@ -666,8 +666,7 @@ static void parse_into(xen_session *s, x
     {
         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");

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.