summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2df60d9)
raw | patch | inline | side by side (parent: 2df60d9)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 2 May 2005 19:32:49 +0000 (19:32 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 2 May 2005 19:32:49 +0000 (19:32 +0000) |
program/src/rrd_graph_helper.c | patch | blob | history |
index 65bedb41f11100f066f2ebe91e145332c8a455bd..595486a193388c91241b1e492610ed0bb308c8c5 100644 (file)
double width;
*eaten+=i;
if (sscanf(&line[*eaten],"%lf%n:",&width,&i)){
- if (width <= 0){
- rrd_set_error("LINE width is %lf. It must be >= 0 though",width);
+ if (width < 0 || isnan(width) || isinf(width) ){
+ rrd_set_error("LINE width is %lf. It must be finite and >= 0 though",width);
return 1;
}
gdp->linewidth=width;