diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2020-10-04 10:59:45 +0200 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2020-10-04 10:59:45 +0200 |
commit | 2e4c19c2e33591689429dd9b5329c7367d83268c (patch) | |
tree | 19c620c323797e02506fb645ad6babef358eeade /modules/generators | |
parent | Save a few bytes of memory in mod_autoindex (diff) | |
download | apache2-2e4c19c2e33591689429dd9b5329c7367d83268c.tar.xz apache2-2e4c19c2e33591689429dd9b5329c7367d83268c.zip |
Fix a compilation error in maintainer mode and be consistent with 'make_autoindex_entry()'
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1882232 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/generators')
-rw-r--r-- | modules/generators/mod_autoindex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index 029f65732a..84ec593b89 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -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^^"); |