aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wtf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wtf8.c b/wtf8.c
index e400db9..68de1ca 100644
--- a/wtf8.c
+++ b/wtf8.c
@@ -18,7 +18,7 @@ void print_octets(char *s) {
/*
* Iterate through the string, printing each octet, ending with a newline
*/
- while (c = *s++)
+ while ((c = *s++))
printf("%c%02x", (is_utf8_cont(c) ? '-' : ' '), c);
putchar('\n');