summaryrefslogtreecommitdiff
path: root/modules/test
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2001-01-05 19:40:05 +0000
committerRyan Bloom <rbb@apache.org>2001-01-05 19:40:05 +0000
commit83c2b3f96bad0883376b667fdc67854d6f2c0ee2 (patch)
tree30275961653f76d7003e110fd0576bb4a2d7db86 /modules/test
parent214ce806b63a23c3164e5aa12121a1855ff540c3 (diff)
downloadhttpd-83c2b3f96bad0883376b667fdc67854d6f2c0ee2.tar.gz
Stop copying file names that we get from apr_file_t's and apr_dir_t's.
We copy the data when we store it in the structures, we can just return a pointer from there, and use const data. This puts the onus back on Apache to copy the data if it needs to modify it. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87592 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/test')
-rw-r--r--modules/test/mod_autoindex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/test/mod_autoindex.c b/modules/test/mod_autoindex.c
index 1be1080d81..b1a5b6bb74 100644
--- a/modules/test/mod_autoindex.c
+++ b/modules/test/mod_autoindex.c
@@ -1622,7 +1622,7 @@ static int index_directory(request_rec *r,
*/
head = NULL;
while (apr_readdir(d) == APR_SUCCESS) {
- char *d_name;
+ const char *d_name;
apr_get_dir_filename(&d_name, d);
p = make_autoindex_entry(d_name, autoindex_opts,
autoindex_conf, r, keyid, direction);