]> granicus.if.org Git - apache/commitdiff
That check is superfluous since we must have savename defined
authorJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 7 Feb 2002 06:50:52 +0000 (06:50 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 7 Feb 2002 06:50:52 +0000 (06:50 +0000)
(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

index 3848e41b99bb2a26464a14b69e00c66bc67b872d..66aeac82559260015a32934e977b2154cd6c1f7b 100644 (file)
@@ -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);