From 700672a2430a27bc3fea592a743945d21f3e9905 Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 14 Jan 2010 12:56:59 +0000 Subject: [PATCH] re-fix #243 checking for '\0' made the whole check pointless. Now it should actually catch bad input. git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@2000 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_update.c | 1 - 1 file changed, 1 deletion(-) diff --git a/program/src/rrd_update.c b/program/src/rrd_update.c index 4baa5258..1a6d2ef5 100644 --- a/program/src/rrd_update.c +++ b/program/src/rrd_update.c @@ -1026,7 +1026,6 @@ static int update_pdp_prep( || updvals[ds_idx + 1][0] > '9' ) && updvals[ds_idx + 1][0] != '-' && updvals[ds_idx + 1][0] != 'U' - && updvals[ds_idx + 1][0] == '\0' ) { rrd_set_error("not a simple integer: '%s'", updvals[ds_idx + 1]); -- 2.30.2