From ab4df6edb81e5237d8c4b381eae01bb5794e8819 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 4 Aug 2009 14:44:04 +0200 Subject: check_acl(): initialize "perm" to eliminate compiler warning. Provides safe fallback for switch statement, just in case.. Michael --- src/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3