Don't fill in err_str if we're not going to use it.
authorGuy Harris <guy@alum.mit.edu>
Mon, 13 May 2013 23:23:33 +0000 (23:23 -0000)
committerGuy Harris <guy@alum.mit.edu>
Mon, 13 May 2013 23:23:33 +0000 (23:23 -0000)
(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

capture_opts.c

index 2718eeaafa68aeee3ea8c825ff19c5fd1537c273..3c88d282ffa72c005a447573af23c08c494835ee 100644 (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;