From: Tobias Oetiker Date: Thu, 14 Jan 2010 12:56:59 +0000 (+0000) Subject: re-fix #243 checking for '\0' made the whole check pointless. Now it should actually... X-Git-Tag: 1.4.3~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a4419837331e9e2d4266266c79b20b393ff117a;p=thirdparty%2Frrdtool-1.x.git 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/trunk/program@2000 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_update.c b/src/rrd_update.c index 9526ec2d..8efd4930 100644 --- a/src/rrd_update.c +++ b/src/rrd_update.c @@ -1047,7 +1047,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]);