You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2012/03/21 16:02:26 UTC

git commit: TS-1140: Making the compiler shut up.

Updated Branches:
  refs/heads/master a2dc96571 -> a26f1d9b3


TS-1140: Making the compiler shut up.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/a26f1d9b
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/a26f1d9b
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/a26f1d9b

Branch: refs/heads/master
Commit: a26f1d9b3b0ae9cdda58792c9f3e707572765321
Parents: a2dc965
Author: Alan M. Carroll <am...@network-geographics.com>
Authored: Wed Mar 21 10:01:59 2012 -0500
Committer: Alan M. Carroll <am...@network-geographics.com>
Committed: Wed Mar 21 10:01:59 2012 -0500

----------------------------------------------------------------------
 proxy/IPAllow.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/a26f1d9b/proxy/IPAllow.cc
----------------------------------------------------------------------
diff --git a/proxy/IPAllow.cc b/proxy/IPAllow.cc
index 415d6cf..fe81282 100644
--- a/proxy/IPAllow.cc
+++ b/proxy/IPAllow.cc
@@ -272,7 +272,7 @@ IpAllow::BuildTable()
           // Search for "action=ip_allow method=PURGE method=GET ..." or "action=ip_deny method=PURGE method=GET ...".
           char *label, *val;
           uint32_t acl_method_mask = 0;
-          AclOp op;
+          AclOp op = ACL_OP_DENY; // "shut up", I explained to the compiler.
           bool op_found = false, method_found = false;
           for (int i = 0; i < MATCHER_MAX_TOKENS; i++) {
             label = line_info.line[0][i];