From: wessels <> Date: Tue, 5 Dec 2000 16:03:31 +0000 (+0000) Subject: NPR bug. sd->log.clean.done will be NULL if start() fails. X-Git-Tag: SQUID_3_0_PRE1~1746 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=678554612466f41943cd96974db2ed80f023401a;p=thirdparty%2Fsquid.git NPR bug. sd->log.clean.done will be NULL if start() fails. --- diff --git a/src/store_dir.cc b/src/store_dir.cc index 6c327b130f..b502b78e93 100644 --- a/src/store_dir.cc +++ b/src/store_dir.cc @@ -1,6 +1,6 @@ /* - * $Id: store_dir.cc,v 1.115 2000/10/31 23:48:15 wessels Exp $ + * $Id: store_dir.cc,v 1.116 2000/12/05 09:03:31 wessels Exp $ * * DEBUG: section 47 Store Directory Routines * AUTHOR: Duane Wessels @@ -401,7 +401,8 @@ storeDirWriteCleanLogs(int reopen) /* Flush */ for (dirn = 0; dirn < Config.cacheSwap.n_configured; dirn++) { sd = &Config.cacheSwap.swapDirs[dirn]; - sd->log.clean.done(sd); + if (sd->log.clean.done) + sd->log.clean.done(sd); } if (reopen) storeDirOpenSwapLogs();