diff --git a/libratbox/src/commio.c b/libratbox/src/commio.c index ba0e0f1d..5607468f 100644 --- a/libratbox/src/commio.c +++ b/libratbox/src/commio.c @@ -1266,7 +1266,10 @@ inet_ntop6(const unsigned char *src, char *dst, unsigned int size) if(words[i] == 0) { if(cur.base == -1) - cur.base = i, cur.len = 1; + { + cur.base = i; + cur.len = 1; + } else cur.len++; }