forked from osmocom/wireshark
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>
This commit is contained in:
parent
ee9d0f9230
commit
cca2cde68e
|
@ -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");
|
||||
|
|
|
@ -546,7 +546,7 @@ int 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");
|
||||
|
|
Loading…
Reference in New Issue