summaryrefslogtreecommitdiff
path: root/lib/libc/string/wcsstr.c
diff options
context:
space:
mode:
authorDaniel Gerzo <danger@FreeBSD.org>2009-02-03 17:58:20 +0000
committerDaniel Gerzo <danger@FreeBSD.org>2009-02-03 17:58:20 +0000
commitbd604b4b064135e661660c045cd31145e2e4ce71 (patch)
treec5d6de4ed720c8bb5b4d132f30cd8fbd28bbeb81 /lib/libc/string/wcsstr.c
parent23ee18767ede4614aedbe8645e896f0194f3500c (diff)
Notes
Diffstat (limited to 'lib/libc/string/wcsstr.c')
-rw-r--r--lib/libc/string/wcsstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/string/wcsstr.c b/lib/libc/string/wcsstr.c
index b8a7598c8efb..a9dc27bbf498 100644
--- a/lib/libc/string/wcsstr.c
+++ b/lib/libc/string/wcsstr.c
@@ -49,7 +49,7 @@ wcsstr(const wchar_t * __restrict s, const wchar_t * __restrict find)
wchar_t c, sc;
size_t len;
- if ((c = *find++) != 0) {
+ if ((c = *find++) != L'\0') {
len = wcslen(find);
do {
do {