From: Christophe Jaillet Date: Wed, 15 Feb 2017 03:48:30 +0000 (+0000) Subject: Save a few bytes in the request pool. X-Git-Tag: 2.5.0-alpha~657 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94f37b14725336f13eb53f0a584a5eb9d2caeb77;p=thirdparty%2Fapache%2Fhttpd.git Save a few bytes in the request pool. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1783056 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_dir.c b/modules/mappers/mod_dir.c index 25e223c3372..3aebd9c0b4b 100644 --- a/modules/mappers/mod_dir.c +++ b/modules/mappers/mod_dir.c @@ -383,10 +383,10 @@ static int fixup_dir(request_rec *r) } /* record what we tried, mostly for the benefit of mod_autoindex */ - apr_table_set(r->notes, "dir-index-names", - d->index_names ? - apr_array_pstrcat(r->pool, d->index_names, ','): - AP_DEFAULT_INDEX); + apr_table_setn(r->notes, "dir-index-names", + d->index_names ? + apr_array_pstrcat(r->pool, d->index_names, ',') : + AP_DEFAULT_INDEX); /* nothing for us to do, pass on through */ return DECLINED;