about summary refs log tree commit diff
path: root/inet/inet_net.c
diff options
context:
space:
mode:
Diffstat (limited to 'inet/inet_net.c')
-rw-r--r--inet/inet_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inet/inet_net.c b/inet/inet_net.c
index 1def607278..54120cb279 100644
--- a/inet/inet_net.c
+++ b/inet/inet_net.c
@@ -59,7 +59,7 @@ again:
 		base = 8, cp++;
 	if (*cp == 'x' || *cp == 'X')
 		base = 16, cp++;
-	while (c = *cp) {
+	while ((c = *cp)) {
 		if (isdigit(c)) {
 			val = (val * base) + (c - '0');
 			cp++;