From 4455a8793a7ac7209f5693d838b62a8a264650e5 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Thu, 7 Feb 2002 06:50:52 +0000 Subject: [PATCH] That check is superfluous since we must have savename defined (otherwise, we'd get APR_INCOMPLETE on apr_dir_read). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93330 13f79535-47bb-0310-9956-ffa450edef68 --- modules/generators/mod_autoindex.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index 3848e41b99..66aeac8255 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -2044,10 +2044,8 @@ static int index_directory(request_rec *r, continue; } memcpy(&dirent, &fi, sizeof(fi)); - if (savename) { - dirent.name = savename; - dirent.valid |= APR_FINFO_NAME; - } + dirent.name = savename; + dirent.valid |= APR_FINFO_NAME; } p = make_autoindex_entry(&dirent, autoindex_opts, autoindex_conf, r, keyid, direction, pstring); -- 2.40.0