From: Ewan Mellor Date: Fri, 5 Jan 2007 12:29:26 +0000 (+0000) Subject: Added permissiveness for floats. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15422^2~77 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d913c891b75e91d3394c244cfa99989ea9a797c3;p=xen.git Added permissiveness for floats. Signed-off-by: Ewan Mellor --- diff --git a/tools/libxen/src/xen_common.c b/tools/libxen/src/xen_common.c index ea0909d1a4..c380b85190 100644 --- a/tools/libxen/src/xen_common.c +++ b/tools/libxen/src/xen_common.c @@ -557,8 +557,14 @@ static void parse_into(xen_session *s, xmlNode *value_node, xmlChar *string = string_from_value(value_node, "double"); if (string == NULL) { +#if PERMISSIVE + fprintf(stderr, + "Expected a Float from the server, but didn't get one\n"); + ((double *)value)[slot] = 0.0; +#else server_error( s, "Expected a Float from the server, but didn't get one"); +#endif } else {