From: Benno Rice Date: Mon, 22 Sep 2008 00:39:31 +0000 (+1000) Subject: Don't strcmp Config.Log.store if it's NULL in storeLogOpen. X-Git-Tag: SQUID_3_1_0_1~49^2~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=649c2bd36a8b91d18be16379b461b2ab64ebe3ee;p=thirdparty%2Fsquid.git Don't strcmp Config.Log.store if it's NULL in storeLogOpen. --- diff --git a/src/store_log.cc b/src/store_log.cc index 2b2912243f..8c0c484cb0 100644 --- a/src/store_log.cc +++ b/src/store_log.cc @@ -137,7 +137,7 @@ storeLogOpen(void) { storeLogRegisterWithCacheManager(); - if (strcmp(Config.Log.store, "none") == 0) { + if (Config.Log.store == NULL || strcmp(Config.Log.store, "none") == 0) { debugs(20, 1, "Store logging disabled"); return; }