From: oetiker Date: Thu, 4 Sep 2003 13:16:12 +0000 (+0000) Subject: should not assigne but compare ... grrrrr X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=09565c659742dd070ed7b3034234dd9001122f9e;p=rrdtool-all.git should not assigne but compare ... grrrrr git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@214 a5681a0c-68f1-0310-ab6d-d61299d08faa --- 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; }