diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2011-08-05 07:19:17 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2011-08-05 07:19:17 +0000 |
commit | eaffdfeaaa572bb818f116afb3c63b3d43c153ea (patch) | |
tree | c8c59bb819cd73d2b526ae2f3f9406f3d1bd1a93 /capture.c | |
parent | 7f895c681b301d23f0f42d8b96114e5b124a42b5 (diff) | |
download | wireshark-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.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; |