summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/test_addr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_addr.c b/src/test/test_addr.c
index c8a9e6d384..49e248014f 100644
--- a/src/test/test_addr.c
+++ b/src/test/test_addr.c
@@ -85,8 +85,8 @@ test_addr_basic(void *arg)
char *, "%s", \
{ char *cp; \
cp = print_ = tor_malloc(64); \
- for (int ii_=0;i<16;++i) { \
- tor_snprintf(cp, 3,"%02x", (unsigned)value_->s6_addr[i]);\
+ for (int ii_=0;ii_<16;++ii_) { \
+ tor_snprintf(cp, 3,"%02x", (unsigned)value_->s6_addr[ii_]); \
cp += 2; \
if (ii_ != 15) *cp++ = ':'; \
} \