From 711c1eea6da0767a9c499c7133f5352606461a90 Mon Sep 17 00:00:00 2001 From: Stephen Fisher Date: Tue, 28 Aug 2007 02:13:51 +0000 Subject: 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. svn path=/trunk/; revision=22697 --- capture_ui_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'capture_ui_utils.c') 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; -- cgit v1.2.1