libxl: correct strtod error check
PATCH 1/1 libxl: correct strtod error check
Signed-off-by Matthew Daley <[email protected]>
--- tools/libxl/libxl_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/libxl_json.c +1 -1
@@ -486,7 +486,7 @@ static int json_callback_number(void *opaque, const char *s, libxl_yajl_length lif (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; }
Signature · 1 line
1.7.10.4
Quoted 1 line · Matthew Daley
Signed-off-by Matthew Daley <[email protected]>
acked + applied. thanks.