summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-11-16 02:18:30 +0000
committerGuy Harris <guy@alum.mit.edu>2011-11-16 02:18:30 +0000
commit46575653fd0901d147e0afcdd28dbc8e07519f40 (patch)
tree83f95bd7c6a97aa81458342696e8b1a89ce75e5e
parentb7b3df505c89b66c81a7654bcdc899c2bdaf4a09 (diff)
downloadwireshark-46575653fd0901d147e0afcdd28dbc8e07519f40.tar.gz
Don't set variables if we don't look at them later. All praise Clang
Cat. svn path=/trunk/; revision=39876
-rw-r--r--dumpcap.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/dumpcap.c b/dumpcap.c
index df758a4e00..bf0def1217 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -2555,7 +2555,6 @@ capture_loop_init_output(capture_options *capture_opts, loop_data *ld, char *err
&err);
}
} else {
- interface_opts = g_array_index(capture_opts->ifaces, interface_options, 0);
pcap_opts = g_array_index(ld->pcaps, pcap_options *, 0);
if (pcap_opts->from_cap_pipe) {
pcap_opts->snaplen = pcap_opts->cap_pipe_hdr.snaplen;
@@ -2986,7 +2985,6 @@ do_file_switch_or_stop(capture_options *capture_opts,
&global_ld.err);
}
} else {
- interface_opts = g_array_index(capture_opts->ifaces, interface_options, 0);
pcap_opts = g_array_index(global_ld.pcaps, pcap_options *, 0);
successful = libpcap_write_file_header(global_ld.pdh, pcap_opts->linktype, pcap_opts->snaplen,
&global_ld.bytes_written, &global_ld.err);
@@ -3065,7 +3063,6 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct
interface_options interface_opts;
guint i, error_index = 0;
- interface_opts = capture_opts->default_options;
*errmsg = '\0';
*secondary_errmsg = '\0';