diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-04-29 12:39:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:05:15 -0500 |
commit | e572bbb94cb8a23d366647bcf584cc75029e8def (patch) | |
tree | 0e63adf94037542fc38f178e43f02bfdb0b35a4b /source4/lib/charset/util_unistr.c | |
parent | 657325d684b838ee7dd6379a4a6034c1fedabcae (diff) | |
download | samba-e572bbb94cb8a23d366647bcf584cc75029e8def.tar.gz samba-e572bbb94cb8a23d366647bcf584cc75029e8def.tar.bz2 samba-e572bbb94cb8a23d366647bcf584cc75029e8def.zip |
r15321: Reduce the size of rewrite.m4 a bit more
(This used to be commit c83e4b166534278c335254aa8890a50635bbf1b7)
Diffstat (limited to 'source4/lib/charset/util_unistr.c')
-rw-r--r-- | source4/lib/charset/util_unistr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/charset/util_unistr.c b/source4/lib/charset/util_unistr.c index f55e390856..1eb198d6f9 100644 --- a/source4/lib/charset/util_unistr.c +++ b/source4/lib/charset/util_unistr.c @@ -268,7 +268,7 @@ _PUBLIC_ BOOL strcsequal_w(const char *s1,const char *s2) **/ _PUBLIC_ void string_replace_w(char *s, char oldc, char newc) { - while (*s) { + for (; s && *s; s++) { size_t size; codepoint_t c = next_codepoint(s, &size); if (c == oldc) { |