diff options
-rw-r--r-- | ui/commandline.c | 3 | ||||
-rw-r--r-- | wireshark-qt.cpp | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ui/commandline.c b/ui/commandline.c index 49b99f44c7..4e6f28dba8 100644 --- a/ui/commandline.c +++ b/ui/commandline.c @@ -231,6 +231,9 @@ void commandline_capture_options(int argc, char *argv[], commandline_capture_par */ opterr = 0; +#ifndef HAVE_LIBPCAP + param_info->capture_option_specified = FALSE; +#endif while ((opt = getopt_long(argc, argv, optstring, long_options, NULL)) != -1) { switch (opt) { case 'C': /* Configuration Profile */ diff --git a/wireshark-qt.cpp b/wireshark-qt.cpp index 6b54f99f5b..f332dc455a 100644 --- a/wireshark-qt.cpp +++ b/wireshark-qt.cpp @@ -330,7 +330,6 @@ int main(int argc, char *argv[]) gchar *err_str; int status; #else - gboolean capture_option_specified = FALSE; #ifdef _WIN32 #ifdef HAVE_AIRPCAP gchar *err_str; |