summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-04 14:44:04 +0200
committerMichael Adam <obnox@samba.org>2009-08-04 23:47:27 +0200
commitab4df6edb81e5237d8c4b381eae01bb5794e8819 (patch)
tree1c43000b90526d1aee0b1dafd7563f16369b643f
parent14a3e187ee6b2a708186917550e5fd73652e996d (diff)
downloadtinyproxy-ab4df6edb81e5237d8c4b381eae01bb5794e8819.tar.gz
tinyproxy-ab4df6edb81e5237d8c4b381eae01bb5794e8819.zip
check_acl(): initialize "perm" to eliminate compiler warning.
Provides safe fallback for switch statement, just in case.. Michael
-rw-r--r--src/acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/acl.c b/src/acl.c
index 1002332..aec6773 100644
--- a/src/acl.c
+++ b/src/acl.c
@@ -334,7 +334,7 @@ int
check_acl (const char *ip, const char *host)
{
struct acl_s *acl;
- int perm;
+ int perm = 0;
size_t i;
assert (ip != NULL);