From: Amos Jeffries Date: Wed, 16 Feb 2011 14:17:21 +0000 (+1300) Subject: Bug 2720: comment in same line as cache/mem_replacement_policy causes error X-Git-Tag: take03^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6574e1139271b1ee707eebb66dd277e8f383b94;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);