diff options
author | wollman <wollman@FreeBSD.org> | 2009-11-25 04:45:45 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 2009-11-25 04:45:45 +0000 |
commit | a98dd21d5f02e42d66bdd19531580000647322e8 (patch) | |
tree | 01f0d0420123a2fbc4530d2d7bd607cbf6ee8049 /lib/libc/stdio | |
parent | 0bb16760a11c0384ebde0564be95b7c5711ce69e (diff) | |
download | FreeBSD-src-a98dd21d5f02e42d66bdd19531580000647322e8.zip FreeBSD-src-a98dd21d5f02e42d66bdd19531580000647322e8.tar.gz |
Eliminate more dead stores.
Found by: Clang static analyzer
MFC after: 7 days
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/fgetws.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |