From c5282fa77324d86f882cfda15f43b62d2b1f8bc2 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/program@214 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_update.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rrd_update.c b/src/rrd_update.c index ecd5b37..7217041 100644 --- a/src/rrd_update.c +++ b/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.11.0