summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2002-08-19 20:12:38 +0000
committerache <ache@FreeBSD.org>2002-08-19 20:12:38 +0000
commit53166ba7d82cad3a6b666a6d00d2de0a1c8ce188 (patch)
treecab680f0c9040ad48c0653735e931fbede74ba64 /lib
parent355d213f69efd3025a8c631070cc90487dc6dbb4 (diff)
downloadFreeBSD-src-53166ba7d82cad3a6b666a6d00d2de0a1c8ce188.zip
FreeBSD-src-53166ba7d82cad3a6b666a6d00d2de0a1c8ce188.tar.gz
Write null wide-character as L'\0' like in other places
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/locale/wcwidth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/wcwidth.c b/lib/libc/locale/wcwidth.c
index b2d70a5..ea9fa84 100644
--- a/lib/libc/locale/wcwidth.c
+++ b/lib/libc/locale/wcwidth.c
@@ -54,7 +54,7 @@ wcwidth(wc)
{
int width;
- if (wc == 0)
+ if (wc == L'\0')
return (0);
width = __maskrune(wc, _CTYPE_SWM);
OpenPOWER on IntegriCloud