aboutsummaryrefslogtreecommitdiffstats
path: root/capture_ui_utils.c
diff options
context:
space:
mode:
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2007-08-28 02:13:51 +0000
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2007-08-28 02:13:51 +0000
commit72c94ff7017f1c89bfbdacf3744e3ba72ccef0ae (patch)
tree94e12515ed4164ee3c2d142997799f72149cbe46 /capture_ui_utils.c
parent93f1233afbc6b3e0924da1077ea0632163813a26 (diff)
Fix for bug #1801 (http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1801)
Don't get to the point where we may do a strcmp() with a null value. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22697 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_ui_utils.c')
-rw-r--r--capture_ui_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_ui_utils.c b/capture_ui_utils.c
index cbf3b00891..78c4e55909 100644
--- a/capture_ui_utils.c
+++ b/capture_ui_utils.c
@@ -127,7 +127,7 @@ get_interface_descriptive_name(const char *if_name)
one from the OS or libpcap? */
descr = NULL;
if_list = get_interface_list(&err, NULL);
- if (if_list != NULL) {
+ if (if_list != NULL && if_name != NULL) {
if_entry = if_list;
do {
if_info = if_entry->data;