lib: strings: Simplify strcasecmp
authorVolker Lendecke <vl@samba.org>
Tue, 5 Aug 2014 09:21:07 +0000 (09:21 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 5 Aug 2014 23:05:14 +0000 (01:05 +0200)
commit64271c493df66f1dc67fae7fa14ec75f49db65af
treef397443d0efd545e480ad58c9e1c6c7df1959dd9
parentca1617121a2a6418c2e3ab7a7ce92ddaa1368ce2
lib: strings: Simplify strcasecmp

This makes us fallback to strcasecmp early if any INVALID_CODEPOINT
appears. Without this patch we just continue to compare if both strings
happen to have an INVALID_CODEPOINT in the same spot.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/charset/util_str.c