[mod_dirlisting] hide unused variable on MacOS

(quiet compiler warning)
This commit is contained in:
Glenn Strauss 2021-01-12 23:01:26 -05:00
parent 8ae6807654
commit c0e73fd1d8
1 changed files with 2 additions and 0 deletions

View File

@ -851,7 +851,9 @@ static int http_list_directory(request_st * const r, plugin_data * const p, buff
char * const path = malloc(dlen + name_max + 1);
force_assert(NULL != path);
memcpy(path, dir->ptr, dlen+1);
#if defined(HAVE_XATTR) || defined(HAVE_EXTATTR) || !defined(_ATFILE_SOURCE)
char *path_file = path + dlen;
#endif
log_error_st * const errh = r->conf.errh;
struct dirent *dent;