]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Initialise splay node's.
authorrobertc <>
Wed, 3 Sep 2003 03:45:48 +0000 (03:45 +0000)
committerrobertc <>
Wed, 3 Sep 2003 03:45:48 +0000 (03:45 +0000)
Keywords:

The SplayNode template did not initialise it's members.

include/splay.h

index 4159d2416d75e645e0a1aef9cf8d59a45ecde0a3..bc1bb0338aa0aadc523b9a79f958b562c1125fcc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: splay.h,v 1.22 2003/08/04 22:14:37 robertc Exp $
+ * $Id: splay.h,v 1.23 2003/09/02 21:45:48 robertc Exp $
  */
 
 #ifndef SQUID_SPLAY_H
@@ -44,6 +44,7 @@ public:
     typedef void SPLAYWALKEE(Value const & nodedata, void *state);
     static void DefaultFree (Value &aValue) {delete aValue;}
 
+    SplayNode<V> ();
     Value data;
     mutable SplayNode<V> *left;
     mutable SplayNode<V> *right;
@@ -106,6 +107,8 @@ SQUIDCEXTERN void splay_walk(splayNode *, splayNode::SPLAYWALKEE *, void *caller
 
 /* inline methods */
 template<class V>
+SplayNode<V>::SplayNode () : data(NULL), left(NULL), right (NULL) {}
+template<class V>
 void
 SplayNode<V>::walk(SPLAYWALKEE * walkee, void *state)
 {