[rrd-developers] Infinite loop in latest CVS

Chris Turbeville turbo at verio.net
Thu Sep 4 14:51:47 MEST 2003


Looks like a = vs == thing was missed.
-Chris
Index: rrd_update.c
===================================================================
RCS file: /usr/cvs/rrdtool/program/src/rrd_update.c,v
retrieving revision 1.11
diff -U3 -r1.11 rrd_update.c
--- rrd_update.c        2 Sep 2003 21:58:35 -0000       1.11
+++ rrd_update.c        4 Sep 2003 12:51:11 -0000
@@ -624,7 +624,7 @@
                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;
                             }

-- 
cturbeville at verio.net           Chris Turbeville                       NTT/VERIO
       Send mail with subject "send PGP Key" for PGP 6.5.2 Public key

--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-developers mailing list