summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/unvis.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/unvis.c')
-rw-r--r--lib/libc/gen/unvis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/unvis.c b/lib/libc/gen/unvis.c
index ebeb771..32405df 100644
--- a/lib/libc/gen/unvis.c
+++ b/lib/libc/gen/unvis.c
@@ -224,7 +224,7 @@ strunvis(dst, src)
char *start = dst;
int state = 0;
- while (c = *src++) {
+ while ( (c = *src++) ) {
again:
switch (unvis(dst, c, &state, 0)) {
case UNVIS_VALID:
OpenPOWER on IntegriCloud