summaryrefslogtreecommitdiff
path: root/capture.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2011-08-05 07:19:17 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2011-08-05 07:19:17 +0000
commiteaffdfeaaa572bb818f116afb3c63b3d43c153ea (patch)
treec8c59bb819cd73d2b526ae2f3f9406f3d1bd1a93 /capture.c
parent7f895c681b301d23f0f42d8b96114e5b124a42b5 (diff)
downloadwireshark-eaffdfeaaa572bb818f116afb3c63b3d43c153ea.tar.gz
Add support for multiple interfaces to the capture options dialog.
Obtained from Irene Ruengeler. svn path=/trunk/; revision=38350
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/capture.c b/capture.c
index 8a0092a591..22bab8dd94 100644
--- a/capture.c
+++ b/capture.c
@@ -696,9 +696,11 @@ capture_stat_start(GList *if_list) {
/* Initialize the cache */
for (if_entry = if_list; if_entry != NULL; if_entry = g_list_next(if_entry)) {
if_info = if_entry->data;
- sc_item = g_malloc0(sizeof(if_stat_cache_item_t));
- sc_item->name = g_strdup(if_info->name);
- sc->cache_list = g_list_append(sc->cache_list, sc_item);
+ if (if_info) {
+ sc_item = g_malloc0(sizeof(if_stat_cache_item_t));
+ sc_item->name = g_strdup(if_info->name);
+ sc->cache_list = g_list_append(sc->cache_list, sc_item);
+ }
}
}
return sc;