From f6c50a94969ddf8ccb177118096f11a1ad73c9f3 Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Tue, 13 May 2014 14:23:21 +0200 Subject: Fixing duplicate apr_array_make call. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addressing returned_pointer – Pointer "gecos_array" returned by "apr_array_make(r->pool, 1, 8)" is never used. --- mod_lookup_identity.c | 1 - 1 file changed, 1 deletion(-) 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); -- cgit