diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2015-12-23 13:09:44 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2015-12-23 12:11:21 +0000 |
commit | 8bd135366e0b97641ad8410016dc9c148d5e41c8 (patch) | |
tree | cd020fb17cba6a5c991a2add0957b5b48e6d2222 /ui/gtk | |
parent | 35ee09e0f0dfccc0db23a7b34548943ef54a6a74 (diff) |
Added HAVE_LIBPCAP guards
The info_data struct is only when HAVE_LIBPCAP.
Change-Id: I30a3f974cbe3c1474bfe288b222f5871d674bada
Reviewed-on: https://code.wireshark.org/review/12846
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/gtk')
-rw-r--r-- | ui/gtk/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c index fe6fa5b26e..8bac7d6400 100644 --- a/ui/gtk/main.c +++ b/ui/gtk/main.c @@ -3181,8 +3181,10 @@ main(int argc, char *argv[]) /* the window can be sized only, if it's not already shown, so do it now! */ main_load_window_geometry(top_level); +#ifdef HAVE_LIBPCAP /* initialize the packet counters */ global_info_data.counts.counts_hash = NULL; +#endif g_timeout_add(info_update_freq, resolv_update_cb, NULL); |