From: Benno Rice Date: Mon, 22 Sep 2008 00:37:49 +0000 (+1000) Subject: Avoid a potential compare against a NULL pointer in storeLogOpen. X-Git-Tag: SQUID_3_1_0_1~49^2~9^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a77680125db66c988b552aaa4929a5e12d7e5d8d;p=thirdparty%2Fsquid.git Avoid a potential compare against a NULL pointer 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; }