From: Justin Erenkrantz Date: Thu, 7 Feb 2002 06:50:52 +0000 (+0000) Subject: That check is superfluous since we must have savename defined X-Git-Tag: 2.0.32~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00ad366b42d5fa58aec0da15109ccf64068d587a;p=apache 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 --- 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);