X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fnetwork%2Finet_pton.c;h=bb16fb90b1b884fd74522dc719b12b78c64d1af0;hb=a749ba3adc2f3b4abfc68b21d4c3741b20c8f657;hp=5affb08d19dd7f6b0a3efcdba207472f8729bea6;hpb=34d81974d341e0174d1fc690b4d3e3b9b1767586;p=musl 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) {