Branch: Tag:

2003-04-02

2003-04-02 12:22:59 by Martin Stjernholm <mast@lysator.liu.se>

Fixed filter bug that could cause invalid identifier to be cached and
returned by dirnode._indices and joinnode._indices.

Rev: lib/master.pike.in:1.266

6:   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information.   // - // $Id: master.pike.in,v 1.265 2003/04/01 17:48:15 nilsson Exp $ + // $Id: master.pike.in,v 1.266 2003/04/02 12:22:59 mast Exp $      #pike __REAL_VERSION__   
1161:    static array(string) _indices()    {    fill_cache(); -  return indices(filter(cache, lambda(mixed x) { -  return cache[x] != ZERO_TYPE; -  } )); +  return indices(filter(cache, lambda(mixed x) {return x != ZERO_TYPE;} ));    }       static array(mixed) _values()
1298:    array(string) _indices()    {    fill_cache(); -  return indices(filter(cache, lambda(mixed x){ return cache[x] != ZERO_TYPE; })); +  return indices(filter(cache, lambda(mixed x){ return x != ZERO_TYPE; }));    }    array(mixed) _values()    {