diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2011-05-19 20:20:35 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2011-05-19 20:20:35 +0000 |
commit | 8b701e108a91fd55413ed7b98072b055180a9bf3 (patch) | |
tree | b4aafd3bd96a0f3b77b94df61f8f2f4041853f42 /gtk/main_statusbar.c | |
parent | d868d6385bb2ea0bceeabd1f76f8f91ad441c94f (diff) |
In case we have no interface information in the array, use the global value.
This fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5935.
svn path=/trunk/; revision=37307
Diffstat (limited to 'gtk/main_statusbar.c')
-rw-r--r-- | gtk/main_statusbar.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/main_statusbar.c b/gtk/main_statusbar.c index 9e246191f1..ffaea3a928 100644 --- a/gtk/main_statusbar.c +++ b/gtk/main_statusbar.c @@ -695,10 +695,12 @@ statusbar_get_interface_names(capture_options *capture_opts) GString *interface_names; interface_names = g_string_new(""); + if (capture_opts->ifaces->len == 0) { + g_string_append_printf(interface_names, "%s", get_iface_description(capture_opts)); #ifdef _WIN32 - if (capture_opts->ifaces->len < 2) { + } else if (capture_opts->ifaces->len < 2) { #else - if (capture_opts->ifaces->len < 4) { + } else if (capture_opts->ifaces->len < 4) { #endif for (i = 0; i < capture_opts->ifaces->len; i++) { if (i > 0) { |