httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1417197 - /httpd/httpd/trunk/modules/aaa/mod_authz_owner.c
Date Tue, 04 Dec 2012 21:23:25 GMT
Author: jailletc36
Date: Tue Dec  4 21:23:25 2012
New Revision: 1417197

URL: http://svn.apache.org/viewvc?rev=1417197&view=rev
Log:
cppCheck: kill a unread variable warning

Modified:
    httpd/httpd/trunk/modules/aaa/mod_authz_owner.c

Modified: httpd/httpd/trunk/modules/aaa/mod_authz_owner.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_authz_owner.c?rev=1417197&r1=1417196&r2=1417197&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_authz_owner.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_authz_owner.c Tue Dec  4 21:23:25 2012
@@ -110,8 +110,6 @@ static authz_status fileowner_check_auth
 
 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(
 #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;



Mime
View raw message