Add missing guard around access to interface_row.buffer.

svn path=/trunk/; revision=38849
This commit is contained in:
Martin Mathieson 2011-09-01 22:02:46 +00:00
parent ade0c47d95
commit 358fbd6f5d
1 changed files with 3 additions and 1 deletions

View 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));