]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
* fix error messages for bad input
authorTobias Oetiker <tobi@oetiker.ch>
Mon, 29 Jun 2015 15:49:17 +0000 (17:49 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Mon, 29 Jun 2015 15:49:17 +0000 (17:49 +0200)
src/rrd_diff.c

index 93769508aeea92a09ddce3d21c431ffe21b76ac9..367b9e62f27ee48d0b9ad70982c8fb66890aaa84 100644 (file)
@@ -84,14 +84,14 @@ double rrd_diff(
                 c = 0;
             }
         }
-        if (rrd_strtodbl(res, NULL, &result, 'expected a number') != 2){
+        if (rrd_strtodbl(res, NULL, &result, "expected a number") != 2){
             result = DNAN;
         }
         else {
             result = -result;
         }
     } else {
-        if (rrd_strtodbl(res, NULL, &result, 'expected a number') != 2){
+        if (rrd_strtodbl(res, NULL, &result, "expected a number") != 2){
             result = DNAN;
         }
     }