diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-02-02 16:00:49 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-02-03 00:01:17 +0000 |
commit | 14fba80f0f478d9c167685ca2be74c72e46d2664 (patch) | |
tree | ad332233ab91d61e786d963953d7b780a7f429a8 /tshark.c | |
parent | 93a5c83f0a6e609ec4ba3e55872f9924d59ba38a (diff) |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |