When comparing nul strings in cm_strnicmp_utf8 and cm_strnicmp_utf16
the functions should return 0.
LICENSE MIT
Change-Id: I30c1321f42135a5e0160407467549b13cc92393f
Reviewed-on: http://gerrit.openafs.org/2539
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
if (!nls_init)
cm_InitNormalization();
+ if (n == 0)
+ return 0;
+
/* first check for NULL pointers (assume NULL < "") */
if (str1 == NULL) {
if (str2 == NULL)
if (!nls_init)
cm_InitNormalization();
+ if (len == 0)
+ return 0;
+
/* first check for NULL pointers */
if (str1 == NULL) {
if (str2 == NULL)