]> granicus.if.org Git - apache/commitdiff
Save a few bytes in the request pool.
authorChristophe Jaillet <jailletc36@apache.org>
Wed, 15 Feb 2017 03:48:30 +0000 (03:48 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Wed, 15 Feb 2017 03:48:30 +0000 (03:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1783056 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_dir.c

index 25e223c3372ae20cc330e926620e317438e40a03..3aebd9c0b4b120a3b59887a18ed2066175c9cec0 100644 (file)
@@ -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;