]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Benno Rice <benno@squid-cache.org>
authorAmos Jeffries <amosjeffries@squid-cache.org>
Fri, 26 Sep 2008 13:50:31 +0000 (07:50 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Fri, 26 Sep 2008 13:50:31 +0000 (07:50 -0600)
Don't strcmp Config.Log.store if it's NULL in storeLogOpen.

src/store_log.cc

index 2d1be05e20116445538ecbedb5c6769563225bbc..b14c4b635ad1c278ea8017434ff3f411abdcf294 100644 (file)
@@ -127,7 +127,7 @@ storeLogClose(void)
 void
 storeLogOpen(void)
 {
-    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;
     }