Browse Source

[mod_dirlisting] hide unused variable on MacOS

(quiet compiler warning)
master
Glenn Strauss 3 months ago
parent
commit
c0e73fd1d8
  1. 2
      src/mod_dirlisting.c

2
src/mod_dirlisting.c

@ -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