summaryrefslogtreecommitdiff
path: root/source4/lib/charset/util_unistr.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-03-05 00:11:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:49:13 -0500
commit0474005d074163f95e03580e5b1da7f7efe4664a (patch)
treecc1de8e8c0dcc59f562c9f59642f0f298c0cfe08 /source4/lib/charset/util_unistr.c
parentfaaac73ff69699b84266e82b342690c2dc375df2 (diff)
downloadsamba-0474005d074163f95e03580e5b1da7f7efe4664a.tar.gz
samba-0474005d074163f95e03580e5b1da7f7efe4664a.tar.bz2
samba-0474005d074163f95e03580e5b1da7f7efe4664a.zip
r21691: Add testsuite for lib/charset
(This used to be commit a4184893959bb25541704938ee621e5c575b817d)
Diffstat (limited to 'source4/lib/charset/util_unistr.c')
-rw-r--r--source4/lib/charset/util_unistr.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source4/lib/charset/util_unistr.c b/source4/lib/charset/util_unistr.c
index e2c9015d1d..ca65d1fa00 100644
--- a/source4/lib/charset/util_unistr.c
+++ b/source4/lib/charset/util_unistr.c
@@ -251,11 +251,6 @@ _PUBLIC_ int strncasecmp_m(const char *s1, const char *s2, size_t n)
**/
_PUBLIC_ BOOL strequal_w(const char *s1, const char *s2)
{
- if (s1 == s2)
- return(True);
- if (!s1 || !s2)
- return(False);
-
return strcasecmp_m(s1,s2) == 0;
}
@@ -279,7 +274,7 @@ _PUBLIC_ BOOL strcsequal_w(const char *s1,const char *s2)
**/
_PUBLIC_ void string_replace_w(char *s, char oldc, char newc)
{
- for (; s && *s; s++) {
+ while (s && *s) {
size_t size;
codepoint_t c = next_codepoint(s, &size);
if (c == oldc) {