summaryrefslogtreecommitdiff
path: root/libs/libcurl/src/inet_ntop.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libcurl/src/inet_ntop.c')
-rw-r--r--libs/libcurl/src/inet_ntop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/libcurl/src/inet_ntop.c b/libs/libcurl/src/inet_ntop.c
index 786634114d..90a9453a30 100644
--- a/libs/libcurl/src/inet_ntop.c
+++ b/libs/libcurl/src/inet_ntop.c
@@ -117,8 +117,9 @@ static char *inet_ntop6 (const unsigned char *src, char *dst, size_t size)
for(i = 0; i < (IN6ADDRSZ / INT16SZ); i++) {
if(words[i] == 0) {
- if(cur.base == -1)
- cur.base = i, cur.len = 1;
+ if(cur.base == -1) {
+ cur.base = i; cur.len = 1;
+ }
else
cur.len++;
}