]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2720: comment in same line as cache/mem_replacement_policy causes error
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Feb 2011 14:17:21 +0000 (03:17 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Feb 2011 14:17:21 +0000 (03:17 +1300)
src/repl/heap/store_repl_heap.cc

index a75e104afbd7dd7f4c5ca83f2d73774ea87f698a..5cf1809c6310d3a6a50a9d74b7a05deb30f71f4b 100644 (file)
@@ -336,7 +336,10 @@ createRemovalPolicy_heap(wordlist * args)
     }
 
     /* No additional arguments expected */
-    assert(!args);
+    while (args) {
+        debugs(81, DBG_IMPORTANT, "WARNING: discarding unknown removal policy '" << args->key << "'");
+        args = args->next;
+    }
 
     heap_data->theHeap = new_heap(1000, heap_data->keyfunc);