From ab5ac271e6210fa0af11cf3ca525ce573bc47c48 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 6 Sep 2017 11:25:14 +0200 Subject: __libc_dynarray_emplace_enlarge: Add missing else Before, arrays of small elements received a starting allocation size of 8, not 16. --- malloc/dynarray_emplace_enlarge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'malloc') 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; -- cgit v1.2.3