forked from osmocom/wireshark
Don't fill in err_str if we're not going to use it.
(This helps flag capture_interface_list() calls that should perhaps be checked to see whether an error should be reported if they fail.) svn path=/trunk/; revision=49281
This commit is contained in:
parent
0de5240a74
commit
13a80ce39f
|
@ -517,7 +517,7 @@ capture_opts_add_iface_opt(capture_options *capture_opts, const char *optarg_str
|
|||
* the interface name, so that the user can try specifying an
|
||||
* interface explicitly for testing purposes.
|
||||
*/
|
||||
if_list = capture_interface_list(&err, &err_str);
|
||||
if_list = capture_interface_list(&err, NULL);
|
||||
if (if_list != NULL) {
|
||||
/* try and do an exact match (case insensitive) */
|
||||
GList *if_entry;
|
||||
|
|
Loading…
Reference in New Issue