summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 30cd075)
raw | patch | inline | side by side (parent: 30cd075)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 10 Dec 2008 13:18:10 +0000 (13:18 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 10 Dec 2008 13:18:10 +0000 (13:18 +0000) |
se we better provide our own code here.
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1705 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1705 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_restore.c | patch | blob | history |
diff --git a/src/rrd_restore.c b/src/rrd_restore.c
index 2335f59298427a581f335d5b1bdec518c9a11247..f0de21a7b05d665b257492d800ea3fed84fa9103 100644 (file)
--- a/src/rrd_restore.c
+++ b/src/rrd_restore.c
return (-1);
}
-#ifdef WIN32
- if (strcmp(str_ptr, " NaN ") == 0)
+ if (strstr(str_ptr, "NaN") != NULL)
{
*value = DNAN;
xmlFree(str_ptr);
return 0;
}
-#endif
end_ptr = NULL;
temp = strtod(str_ptr, &end_ptr);