From: Christophe Jaillet Date: Tue, 4 Dec 2012 21:23:25 +0000 (+0000) Subject: cppCheck: kill a unread variable warning X-Git-Tag: 2.5.0-alpha~6068 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3ed71cbfa30abfd86c0233815a5b84298d88cdf;p=apache cppCheck: kill a unread variable warning git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1417197 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/mod_authz_owner.c b/modules/aaa/mod_authz_owner.c index 61d47342ea..66b31d6a50 100644 --- a/modules/aaa/mod_authz_owner.c +++ b/modules/aaa/mod_authz_owner.c @@ -110,8 +110,6 @@ static authz_status fileowner_check_authorization(request_rec *r, static char *authz_owner_get_file_group(request_rec *r) { - char *reason = NULL; - /* file-group only figures out the file's group and lets * other modules do the actual authorization (against a group file/db). * Thus, these modules have to hook themselves after @@ -120,6 +118,7 @@ static char *authz_owner_get_file_group(request_rec *r) #if !APR_HAS_USER return NULL; #else /* APR_HAS_USER */ + char *reason = NULL; char *group = NULL; apr_finfo_t finfo; apr_status_t status = 0;