[rrd-developers] Re: Infinite loop in latest CVS

Tobias Oetiker oetiker at ee.ethz.ch
Thu Sep 4 15:16:40 MEST 2003


Today Chris Turbeville wrote:

> 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;
>                              }

blush
fixed
tobi
>
>

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker @ ISG.EE, ETZ J97, ETH, CH-8092 Zurich
 / // _ \/ _ \/ /  System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/~oetiker   +41(0)1-632-5286

--
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