summaryrefslogtreecommitdiffstats
path: root/source3/lib/util_unistr.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-11-08 18:45:38 +0000
committerGerald Carter <jerry@samba.org>2002-11-08 18:45:38 +0000
commit698fe3f07ab059fc2b0a3bac47e36748704fde6d (patch)
treeca5cc8cd231091cbca14aff01e0bdd5efe95c1ba /source3/lib/util_unistr.c
parent66531104fed805080b53838eb720e81393675f98 (diff)
downloadsamba-698fe3f07ab059fc2b0a3bac47e36748704fde6d.tar.gz
samba-698fe3f07ab059fc2b0a3bac47e36748704fde6d.tar.xz
samba-698fe3f07ab059fc2b0a3bac47e36748704fde6d.zip
patches from Urban
(This used to be commit 850b185a6e33fa924fa59cdd6316c9160ba65270)
Diffstat (limited to 'source3/lib/util_unistr.c')
-rw-r--r--source3/lib/util_unistr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c
index eb472524131..8e41581f754 100644
--- a/source3/lib/util_unistr.c
+++ b/source3/lib/util_unistr.c
@@ -335,6 +335,8 @@ smb_ucs2_t *strchr_w(const smb_ucs2_t *s, smb_ucs2_t c)
if (c == *s) return (smb_ucs2_t *)s;
s++;
}
+ if (c == *s) return (smb_ucs2_t *)s;
+
return NULL;
}