diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2007-08-28 02:13:51 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2007-08-28 02:13:51 +0000 |
commit | 711c1eea6da0767a9c499c7133f5352606461a90 (patch) | |
tree | 94e12515ed4164ee3c2d142997799f72149cbe46 /capture_ui_utils.c | |
parent | 516ca59b993d498cea1a5e248b5ec9abbe43b1bd (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.
svn path=/trunk/; revision=22697
Diffstat (limited to 'capture_ui_utils.c')
-rw-r--r-- | capture_ui_utils.c | 2 |
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; |