]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix a compilation error in maintainer mode and be consistent with 'make_autoindex_ent...
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 4 Oct 2020 08:59:45 +0000 (08:59 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 4 Oct 2020 08:59:45 +0000 (08:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1882232 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_autoindex.c

index 029f65732a38f9e607c14b3e0e8c60d12f45f1f6..84ec593b893d3dfab2faf7ec6c2eb7701f6fd1f4 100644 (file)
@@ -1284,7 +1284,7 @@ static struct ent *make_parent_entry(apr_int32_t autoindex_opts,
     p->lm = -1;
     p->key = apr_toupper(keyid);
     p->ascending = (apr_toupper(direction) == D_ASCENDING);
-    p->version_sort = autoindex_opts & VERSION_SORT;
+    p->version_sort = !!(autoindex_opts & VERSION_SORT);
     if (autoindex_opts & FANCY_INDEXING) {
         if (!(p->icon = find_default_icon(d, testpath))) {
             p->icon = find_default_icon(d, "^^DIRECTORY^^");