aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/main.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-01-30 20:03:01 -0800
committerGuy Harris <guy@alum.mit.edu>2015-01-31 04:03:58 +0000
commitcca2cde68e621213a0825b19e5b71c09c2fb581a (patch)
tree36ebea8d2d2a3f0300327b93f34936da8dd94526 /ui/gtk/main.c
parentee9d0f92307a13e288cfa966007b79ddfdb3e783 (diff)
No main window *to* update in the early argument list parsing.
We haven't yet popped the main window up, so, when we call capture_interface_list(), we shouldn't pass a pointer to the "update the main window" routine. Change-Id: Id3e02199479e66bb9e9aff99b435bd03af45a1af Reviewed-on: https://code.wireshark.org/review/6868 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/gtk/main.c')
-rw-r--r--ui/gtk/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c
index e30e4cee56..e10150f03a 100644
--- a/ui/gtk/main.c
+++ b/ui/gtk/main.c
@@ -2341,7 +2341,7 @@ main(int argc, char *argv[])
break;
case 'D': /* Print a list of capture devices and exit */
#ifdef HAVE_LIBPCAP
- if_list = capture_interface_list(&err, &err_str,main_window_update);
+ if_list = capture_interface_list(&err, &err_str, NULL);
if (if_list == NULL) {
if (err == 0)
cmdarg_err("There are no interfaces on which a capture can be done");