From 2154a209d636b7f228f546a69142212f28d4788f Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 1 Jun 2013 04:01:13 -0600 Subject: [PATCH] Fix typo in rev.12859 cbdataReference() is a macro with a design which means it requires usage in the form of an assignment. ie a = cbdataReference(B); , or as a parameter in equivalent to a variable. Not using it in either of those manners results in syntax errors about a ',' from any strict compiler, and many older versions of GCC. --- src/acl/Checklist.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/acl/Checklist.cc b/src/acl/Checklist.cc index 6ce65b93c9..9d4ccfb201 100644 --- a/src/acl/Checklist.cc +++ b/src/acl/Checklist.cc @@ -291,11 +291,10 @@ ACLChecklist::fastCheck(const Acl::Tree * list) // tell whether this Checklist is used by some other concurent call, which // is not supported. assert(!accessList); - accessList = list; + accessList = cbdataReference(list); // assume DENY/ALLOW on mis/matches due to action-free accessList // matchAndFinish() takes care of the ALLOW case - cbdataReference(accessList); // required for cbdataReferenceValid() if (accessList && cbdataReferenceValid(accessList)) matchAndFinish(); // calls markFinished() on success if (!finished()) -- 2.47.2