From 853c779d876c599895f7537a823796ecb867ef89 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 19 Aug 2002 20:12:38 +0000 Subject: [PATCH] Write null wide-character as L'\0' like in other places --- lib/libc/locale/wcwidth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/locale/wcwidth.c b/lib/libc/locale/wcwidth.c index b2d70a5c9e93..ea9fa843ce3d 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);