From 09565c659742dd070ed7b3034234dd9001122f9e Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 4 Sep 2003 13:16:12 +0000 Subject: [PATCH] should not assigne but compare ... grrrrr git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@214 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_update.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/program/src/rrd_update.c b/program/src/rrd_update.c index ecd5b370..7217041e 100644 --- a/program/src/rrd_update.c +++ b/program/src/rrd_update.c @@ -5,6 +5,9 @@ ***************************************************************************** * $Id$ * $Log$ + * Revision 1.12 2003/09/04 13:16:12 oetiker + * should not assigne but compare ... grrrrr + * * Revision 1.11 2003/09/02 21:58:35 oetiker * be pickier about what we accept in rrd_update. Complain if things do not work out * @@ -624,7 +627,7 @@ _rrd_update(char *filename, char *template, int argc, char **argv, case DST_DERIVE: if(rrd.pdp_prep[i].last_ds[0] != 'U'){ for(ii=0;updvals[i+1][ii] != '\0';ii++){ - if(updvals[i+1][ii] < '0' || updvals[i+1][ii] > '9' || (ii=0 && updvals[i+1][ii] == '-')){ + if(updvals[i+1][ii] < '0' || updvals[i+1][ii] > '9' || (ii==0 && updvals[i+1][ii] == '-')){ rrd_set_error("not a simple integer: '%s'",updvals[i+1]); break; } -- 2.30.2