]> granicus.if.org Git - apache/commitdiff
axe some useless assignments (clang scan-build)
authorJeff Trawick <trawick@apache.org>
Wed, 23 Oct 2013 12:03:04 +0000 (12:03 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 23 Oct 2013 12:03:04 +0000 (12:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1534997 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authz_dbm.c
modules/apreq/handle.c

index 561c1558aa8e61ef885f1be5643bc5c52513e5b4..53c91525754b385b8bc7601dc42a1555b9469e51 100644 (file)
@@ -209,7 +209,6 @@ static authz_status dbmfilegroup_check_authorization(request_rec *r,
     char *user = r->user;
     const char *realm = ap_auth_name(r);
     const char *filegroup = NULL;
-    const char *orig_groups = NULL;
     apr_status_t status;
     const char *groups;
     char *v;
@@ -244,12 +243,9 @@ static authz_status dbmfilegroup_check_authorization(request_rec *r,
         return AUTHZ_DENIED;
     }
 
-    orig_groups = groups;
-
     filegroup = authz_owner_get_file_group(r);
 
     if (filegroup) {
-        groups = orig_groups;
         while (groups[0]) {
             v = ap_getword(r->pool, &groups, ',');
             if (!strcmp(v, filegroup)) {
index d2bdca7ac0df7b18318e70cb9c4c0a38d20ac451..d6c73bf5232a4d3d149339129f3ed7a03e663560 100644 (file)
@@ -208,7 +208,6 @@ static apreq_param_t *apache2_body_get(apreq_handle_t *handle, const char *name)
         h->next = ctx->parser->hook;
         h->ctx = hook_ctx;
         ctx->parser->hook = h;
-        h->ctx = hook_ctx;
         hook_ctx->name = name;
         hook_ctx->param = NULL;
         hook_ctx->prev = ctx->parser->hook;