]> granicus.if.org Git - apache/commitdiff
cppCheck: kill a unread variable warning
authorChristophe Jaillet <jailletc36@apache.org>
Tue, 4 Dec 2012 21:23:25 +0000 (21:23 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Tue, 4 Dec 2012 21:23:25 +0000 (21:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1417197 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authz_owner.c

index 61d47342eaf27b65132037649009179024bce16a..66b31d6a502fa8ba58cbfb3122fda5306d3035cc 100644 (file)
@@ -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;