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:
Guy Harris 2013-05-13 23:23:33 +00:00
parent 0de5240a74
commit 13a80ce39f
1 changed files with 1 additions and 1 deletions

View File

@ -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;