From 9686c7ce99da191f37cdde90f794929542f91c5b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 31 Mar 2006 21:31:32 +0000 Subject: [PATCH] cleanup --- libraries/libldap/utf-8-conv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libldap/utf-8-conv.c b/libraries/libldap/utf-8-conv.c index 14cd89e494..e1ffe3c67b 100644 --- a/libraries/libldap/utf-8-conv.c +++ b/libraries/libldap/utf-8-conv.c @@ -129,8 +129,8 @@ ldap_x_utf8s_to_wcs ( wchar_t *wcstr, const char *utf8str, size_t count ) wchar_t ch; - /* If input ptr is NULL, treat it as empty string. */ - if (utf8str == NULL) { + /* If input ptr is NULL or empty... */ + if (utf8str == NULL || !*utf8str) { if ( wcstr ) *wcstr = 0; return 0; -- 2.39.5