aboutsummaryrefslogtreecommitdiff
path: root/malloc/dynarray_emplace_enlarge.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/dynarray_emplace_enlarge.c')
-rw-r--r--malloc/dynarray_emplace_enlarge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc/dynarray_emplace_enlarge.c b/malloc/dynarray_emplace_enlarge.c
index 0fb032765c..a15245f4cb 100644
--- a/malloc/dynarray_emplace_enlarge.c
+++ b/malloc/dynarray_emplace_enlarge.c
@@ -33,7 +33,7 @@ __libc_dynarray_emplace_enlarge (struct dynarray_header *list,
size. */
if (element_size < 4)
new_allocated = 16;
- if (element_size < 8)
+ else if (element_size < 8)
new_allocated = 8;
else
new_allocated = 4;