From 47035533781f49bd3cc1f4918c6b87c3904a02fe Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 8 Nov 2002 18:44:57 +0000 Subject: patches from Urban (This used to be commit da269a73edb7f637b1e1f8b3dafe677f46f66f85) --- source3/lib/util_unistr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index eb47252413..8e41581f75 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; } -- cgit