From: Matthew Daley <mattjd@gmail.com>
To: xen-devel@lists.xenproject.org
Cc: xen-devel@lists.xen.org, Matthew Daley <mattjd@gmail.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Ian Campbell <ian.campbell@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: [PATCH] libxl: correct strtod error check
Date: Fri, 8 Nov 2013 13:32:58 +1300 [thread overview]
Message-ID: <1383870778-9617-1-git-send-email-mattjd@gmail.com> (raw)
Signed-off-by: Matthew Daley <mattjd@gmail.com>
---
tools/libxl/libxl_json.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
1.7.10.4
next reply other threads:[~2013-11-08 0:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-08 0:32 Matthew Daley [this message]
2013-11-11 16:25 ` [PATCH] libxl: correct strtod error check Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1383870778-9617-1-git-send-email-mattjd@gmail.com \
--to=mattjd@gmail.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).