From: amosjeffries <> Date: Thu, 2 Aug 2007 08:18:33 +0000 (+0000) Subject: Initialize local of comm_remove_close_handler() properly to track error X-Git-Tag: SQUID_3_0_PRE7~127 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6a8ef7d88feed0bc0fe7e9217be22984f6d875d;p=thirdparty%2Fsquid.git Initialize local of comm_remove_close_handler() properly to track error (NULL) in all occurances. --- diff --git a/src/comm.cc b/src/comm.cc index ce9767f486..eab7fd4090 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.432 2007/07/09 19:54:13 wessels Exp $ + * $Id: comm.cc,v 1.433 2007/08/02 02:18:33 amosjeffries Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -1647,7 +1647,7 @@ void comm_remove_close_handler(int fd, PF * handler, void *data) { assert (fdc_table[fd].active); - close_handler *p; + close_handler *p = NULL; close_handler *last = NULL; /* Find handler in list */ debugs(5, 5, "comm_remove_close_handler: FD " << fd << ", handler=" <<