summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2014-05-13 14:23:21 +0200
committerJan Pazdziora <jpazdziora@redhat.com>2014-05-13 14:23:25 +0200
commitf6c50a94969ddf8ccb177118096f11a1ad73c9f3 (patch)
tree9e7322321167658552c149ea9a668cc424312f7c
parent82102efd067619df4fce783db8599dc8992cacb9 (diff)
downloadmod_lookup_identity-f6c50a94969ddf8ccb177118096f11a1ad73c9f3.tar.gz
mod_lookup_identity-f6c50a94969ddf8ccb177118096f11a1ad73c9f3.tar.xz
mod_lookup_identity-f6c50a94969ddf8ccb177118096f11a1ad73c9f3.zip
Fixing duplicate apr_array_make call.
Addressing returned_pointer – Pointer "gecos_array" returned by "apr_array_make(r->pool, 1, 8)" is never used.
-rw-r--r--mod_lookup_identity.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mod_lookup_identity.c b/mod_lookup_identity.c
index ae29509..4037dbb 100644
--- a/mod_lookup_identity.c
+++ b/mod_lookup_identity.c
@@ -256,7 +256,6 @@ static int lookup_identity_hook(request_rec * r) {
if (the_config->output_gecos) {
apr_array_header_t * gecos_array = apr_array_make(r->pool, 1, sizeof(char *));
- gecos_array = apr_array_make(r->pool, 1, sizeof(char *));
*(char **)apr_array_push(gecos_array) = pwd->pw_gecos;
lookup_identity_output_data(r, the_output,
the_config->output_gecos, gecos_array, NULL);