about summary refs log tree commit diff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/inet_pton.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/network/inet_pton.c b/src/network/inet_pton.c
index 5affb08d..bb16fb90 100644
--- a/src/network/inet_pton.c
+++ b/src/network/inet_pton.c
@@ -36,10 +36,7 @@ int inet_pton(int af, const char *s, void *a0)
 		return -1;
 	}
 
-	if (s[0]==':' && s[1]==':') {
-		s+=2;
-		brk=0;
-	}
+	if (s[0]==':' && s[1]==':') s++;
 
 	for (i=0; ; i++, s+=j+1) {
 		if (s[0]==':' && brk<0) {