From 15c230577c6874c469c950f7664794d7d1e23dd5 Mon Sep 17 00:00:00 2001
From: Martin Stjernholm <mast@lysator.liu.se>
Date: Wed, 2 Apr 2003 14:22:59 +0200
Subject: [PATCH] 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
---
 lib/master.pike.in | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/lib/master.pike.in b/lib/master.pike.in
index 2b1cbf0d57..8cb62463a1 100644
--- a/lib/master.pike.in
+++ b/lib/master.pike.in
@@ -6,7 +6,7 @@
 // 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,9 +1161,7 @@ class dirnode
   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,7 +1296,7 @@ class joinnode
   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()
   {
-- 
GitLab