Browse Source

[mod_dirlisting] hide unused variable on MacOS

(quiet compiler warning)
master
Glenn Strauss 1 month ago
parent
commit
c0e73fd1d8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/mod_dirlisting.c

+ 2
- 0
src/mod_dirlisting.c 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;


Loading…
Cancel
Save