aboutsummaryrefslogtreecommitdiff
path: root/src/common/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/container.c')
-rw-r--r--src/common/container.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/container.c b/src/common/container.c
index df4952f634..c6f059170e 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -85,7 +85,8 @@ smartlist_ensure_capacity(smartlist_t *sl, int size)
}
sl->list = tor_reallocarray(sl->list, sizeof(void *),
((size_t)higher));
- memset(sl->list + sl->capacity, 0, sizeof(void *) * (higher - sl->capacity));
+ memset(sl->list + sl->capacity, 0,
+ sizeof(void *) * (higher - sl->capacity));
sl->capacity = higher;
}
#undef ASSERT_CAPACITY