]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Avoid a potential compare against a NULL pointer in storeLogOpen.
authorBenno Rice <benno@squid-cache.org>
Mon, 22 Sep 2008 00:37:49 +0000 (10:37 +1000)
committerBenno Rice <benno@squid-cache.org>
Mon, 22 Sep 2008 00:37:49 +0000 (10:37 +1000)
src/store_log.cc

index 2b2912243f809b6d302db5de48f638a48f9b3f70..8c0c484cb0a29ac857d5d570db7ba6c13d150b3d 100644 (file)
@@ -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;
     }