From a98dd21d5f02e42d66bdd19531580000647322e8 Mon Sep 17 00:00:00 2001 From: wollman Date: Wed, 25 Nov 2009 04:45:45 +0000 Subject: Eliminate more dead stores. Found by: Clang static analyzer MFC after: 7 days --- lib/libc/stdio/fgetws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/stdio') diff --git a/lib/libc/stdio/fgetws.c b/lib/libc/stdio/fgetws.c index bbc0299..550843d 100644 --- a/lib/libc/stdio/fgetws.c +++ b/lib/libc/stdio/fgetws.c @@ -89,7 +89,7 @@ fgetws(wchar_t * __restrict ws, int n, FILE * __restrict fp) if (!__mbsinit(&fp->_mbstate)) /* Incomplete character */ goto error; - *wsp++ = L'\0'; + *wsp = L'\0'; FUNLOCKFILE(fp); return (ws); -- cgit v1.1