summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-02-02 16:00:49 -0800
committerGuy Harris <guy@alum.mit.edu>2017-02-03 00:01:17 +0000
commit14fba80f0f478d9c167685ca2be74c72e46d2664 (patch)
treead332233ab91d61e786d963953d7b780a7f429a8 /tshark.c
parent93a5c83f0a6e609ec4ba3e55872f9924d59ba38a (diff)
downloadwireshark-14fba80f0f478d9c167685ca2be74c72e46d2664.tar.gz
Fix builds without libpcap.
capture_opts_cleanup() doesn't exist if we're building without libpcap, so don't call it if we're building without libpcap. Change-Id: I6c9defea15fac7df5533269c4945b965d9a67c25 Reviewed-on: https://code.wireshark.org/review/19924 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index fac5b0bb55..84c8d5f929 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2189,7 +2189,9 @@ main(int argc, char *argv[])
output_fields = NULL;
clean_exit:
+#ifdef HAVE_LIBPCAP
capture_opts_cleanup(&global_capture_opts);
+#endif
return exit_status;
}