summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fputws.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/fputws.c')
-rw-r--r--lib/libc/stdio/fputws.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/fputws.c b/lib/libc/stdio/fputws.c
index a318e2d..d9dc4dfb 100644
--- a/lib/libc/stdio/fputws.c
+++ b/lib/libc/stdio/fputws.c
@@ -70,7 +70,7 @@ fputws_l(const wchar_t * __restrict ws, FILE * __restrict fp, locale_t locale)
iov.iov_len = uio.uio_resid = nbytes;
if (__sfvwrite(fp, &uio) != 0)
goto error;
- } while (ws != NULL);
+ } while (wsp != NULL);
FUNLOCKFILE(fp);
return (0);
OpenPOWER on IntegriCloud