projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0220338
)
libxl: correct strtod error check
author
Matthew Daley
<mattjd@gmail.com>
Fri, 8 Nov 2013 00:32:58 +0000
(13:32 +1300)
committer
Ian Campbell
<ian.campbell@citrix.com>
Mon, 11 Nov 2013 16:10:26 +0000
(16:10 +0000)
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_json.c
patch
|
blob
|
history
diff --git
a/tools/libxl/libxl_json.c
b/tools/libxl/libxl_json.c
index c6ffb528a7ba0f1a9609e99f0698425d7d265680..d2f7de878d5b30aa4f71b9d69f441d84bc8c9136 100644
(file)
--- 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_VA
L) && errno == ERANGE) {
+ if ((d == HUGE_VAL
F || d == HUGE_VAL
L) && errno == ERANGE) {
goto error;
}