From: robertc <> Date: Wed, 3 Sep 2003 03:45:48 +0000 (+0000) Subject: Summary: Initialise splay node's. X-Git-Tag: SQUID_3_0_PRE4~1224 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=87c692d76973c605a0d34af7dffd94f3ff43f047;p=thirdparty%2Fsquid.git Summary: Initialise splay node's. Keywords: The SplayNode template did not initialise it's members. --- diff --git a/include/splay.h b/include/splay.h index 4159d2416d..bc1bb0338a 100644 --- a/include/splay.h +++ b/include/splay.h @@ -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 (); Value data; mutable SplayNode *left; mutable SplayNode *right; @@ -106,6 +107,8 @@ SQUIDCEXTERN void splay_walk(splayNode *, splayNode::SPLAYWALKEE *, void *caller /* inline methods */ template +SplayNode::SplayNode () : data(NULL), left(NULL), right (NULL) {} +template void SplayNode::walk(SPLAYWALKEE * walkee, void *state) {