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

[Xen-changelog] [xen master] libxl: correct strtod error check



commit 9dc145a5828c180d828ad0844f6103bfcc89f799
Author:     Matthew Daley <mattjd@xxxxxxxxx>
AuthorDate: Fri Nov 8 13:32:58 2013 +1300
Commit:     Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Mon Nov 11 16:10:26 2013 +0000

    libxl: correct strtod error check
    
    Signed-off-by: Matthew Daley <mattjd@xxxxxxxxx>
    Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 tools/libxl/libxl_json.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/libxl/libxl_json.c b/tools/libxl/libxl_json.c
index c6ffb52..d2f7de8 100644
--- a/tools/libxl/libxl_json.c
+++ b/tools/libxl/libxl_json.c
@@ -486,7 +486,7 @@ static int json_callback_number(void *opaque, const char 
*s, libxl_yajl_length l
     if (is_decimal(s, len)) {
         double d = strtod(s, NULL);
 
-        if ((d == HUGE_VAL || d == HUGE_VAL) && errno == ERANGE) {
+        if ((d == HUGE_VALF || d == HUGE_VALL) && errno == ERANGE) {
             goto error;
         }
 
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
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®.