Fix a warning

No chroot on Windows.

The warning was:
C:\projects\tcpdump\tcpdump.c(1450): warning C4189: 'chroot_dir':
local variable is initialized but not referenced
This commit is contained in:
Francois-Xavier Le Bail 2019-08-04 14:23:02 +02:00
parent 09822d484b
commit a98167e7c9

View File

@ -1447,7 +1447,9 @@ main(int argc, char **argv)
char ebuf[PCAP_ERRBUF_SIZE];
char VFileLine[PATH_MAX + 1];
char *username = NULL;
#ifndef _WIN32
const char *chroot_dir = NULL;
#endif
char *ret = NULL;
char *end;
#ifdef HAVE_PCAP_FINDALLDEVS