Add missing guard around access to interface_row.buffer.
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 1 Sep 2011 22:02:46 +0000 (22:02 +0000)
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 1 Sep 2011 22:02:46 +0000 (22:02 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38849 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/capture_dlg.c

index e322a66541a450bb796689c7c3a0f376f9880739..4d1a1ef90406437901dc1a708b2c37c5fd5ad824 100644 (file)
@@ -1803,8 +1803,10 @@ void options_interface_cb(GtkTreeView *view, GtkTreePath *path, GtkTreeViewColum
   row.has_snaplen = FALSE;
   row.snaplen = 65535;
   row.cfilter = NULL;
+#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
   row.buffer = 1;
-  
+#endif
+
   model = gtk_tree_view_get_model(view);
   gtk_tree_model_get_iter (model, &iter, path);
   marked_row = atoi(gtk_tree_path_to_string(path));