You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2012/12/04 22:23:25 UTC
svn commit: r1417197 - /httpd/httpd/trunk/modules/aaa/mod_authz_owner.c
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;