aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2015-12-23 13:09:44 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2015-12-23 12:11:21 +0000
commit8bd135366e0b97641ad8410016dc9c148d5e41c8 (patch)
treecd020fb17cba6a5c991a2add0957b5b48e6d2222 /ui/gtk
parent35ee09e0f0dfccc0db23a7b34548943ef54a6a74 (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.c2
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);