From: Amos Jeffries Date: Mon, 28 Feb 2011 10:36:18 +0000 (-0700) Subject: Bug 2720: comment in same line as cache/mem_replacement_policy causes error X-Git-Tag: SQUID_3_1_12~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0199d3438fa30348805a3c4dfae92946088b98d;p=thirdparty%2Fsquid.git Bug 2720: comment in same line as cache/mem_replacement_policy causes error --- diff --git a/src/repl/heap/store_repl_heap.cc b/src/repl/heap/store_repl_heap.cc index a75e104afb..5cf1809c63 100644 --- a/src/repl/heap/store_repl_heap.cc +++ b/src/repl/heap/store_repl_heap.cc @@ -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);