From: Howard Chu Date: Fri, 31 Mar 2006 21:31:32 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~72 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9686c7ce99da191f37cdde90f794929542f91c5b;p=openldap cleanup --- 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;