]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2230 possible fix: segmentation fault with a "pure virtual method called"
authorrousskov <>
Tue, 19 Feb 2008 05:51:21 +0000 (05:51 +0000)
committerrousskov <>
Tue, 19 Feb 2008 05:51:21 +0000 (05:51 +0000)
Added forgotten member initializations. For so many years I have wished
that GCC would warn about these things :-(!

This change may not be enough to fix the bug.

src/Server.cc

index a65238553b951aa70f03c14189dd2cf7dd1aa280..3e4890e7338fd9d4879a5e6769b1587e6dbb00eb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: Server.cc,v 1.25 2008/02/12 23:55:26 rousskov Exp $
+ * $Id: Server.cc,v 1.26 2008/02/18 22:51:21 rousskov Exp $
  *
  * DEBUG:
  * AUTHOR: Duane Wessels
@@ -47,7 +47,9 @@ extern ICAPConfig TheICAPConfig;
 
 ServerStateData::ServerStateData(FwdState *theFwdState): AsyncJob("ServerStateData"),requestSender(NULL)
 #if ICAP_CLIENT
+    , adaptedHeadSource(NULL)
     , icapAccessCheckPending(false)
+    , startedIcap(false)
 #endif
 {
     fwd = theFwdState;