X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_restore.c;h=e9363c6ecea7e392b73e2d545373f537fc591b37;hb=4ee4e5e084caeb4a3af3aefe3c5122b27cb111b4;hp=f803ab68bfe99be49346a3fe6b9ee0cc1ae6624b;hpb=aff0a2728543eee1ac21f3fa02f171caae8d9362;p=rrdtool.git diff --git a/src/rrd_restore.c b/src/rrd_restore.c index f803ab6..e9363c6 100644 --- a/src/rrd_restore.c +++ b/src/rrd_restore.c @@ -143,6 +143,13 @@ static int get_double_from_node( return (-1); } + if (strstr(str_ptr, "NaN") != NULL) + { + *value = DNAN; + xmlFree(str_ptr); + return 0; + } + end_ptr = NULL; temp = strtod(str_ptr, &end_ptr); xmlFree(str_ptr);