From d0848999d5dc7a6c2f98430e50a265ad21b3273c Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 23 Oct 2013 12:03:04 +0000 Subject: [PATCH] axe some useless assignments (clang scan-build) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1534997 13f79535-47bb-0310-9956-ffa450edef68 --- modules/aaa/mod_authz_dbm.c | 4 ---- modules/apreq/handle.c | 1 - 2 files changed, 5 deletions(-) diff --git a/modules/aaa/mod_authz_dbm.c b/modules/aaa/mod_authz_dbm.c index 561c1558aa..53c9152575 100644 --- a/modules/aaa/mod_authz_dbm.c +++ b/modules/aaa/mod_authz_dbm.c @@ -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)) { diff --git a/modules/apreq/handle.c b/modules/apreq/handle.c index d2bdca7ac0..d6c73bf523 100644 --- a/modules/apreq/handle.c +++ b/modules/apreq/handle.c @@ -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; -- 2.40.0