Code

re-fix #243 checking for '\0' made the whole check pointless. Now it should actually...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 14 Jan 2010 12:56:59 +0000 (12:56 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 14 Jan 2010 12:56:59 +0000 (12:56 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2000 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_update.c

index 9526ec2d954b9ce9eb14eca64aaa57bab2eb6941..8efd49305cf52a2c02f8418ecfe16a3c12d7f7c3 100644 (file)
@@ -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]);