aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2016-03-11 16:57:38 -0300
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2016-03-11 18:09:40 -0300
commitb43f552a8a23c0e405ab13a268bee12ada3b7841 (patch)
tree948bd07081ed168302938e475159bb9b0c5c4f81 /malloc
parent869d7180dd4a462674971a25b66070da7f2eabcf (diff)
downloadglibc-b43f552a8a23c0e405ab13a268bee12ada3b7841.zip
glibc-b43f552a8a23c0e405ab13a268bee12ada3b7841.tar.gz
glibc-b43f552a8a23c0e405ab13a268bee12ada3b7841.tar.bz2
Fix type of parameter passed by malloc_consolidate
atomic_exchange_acq() expected a pointer, but was receiving an integer.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index b8a43bf..1eed794 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -4150,7 +4150,7 @@ static void malloc_consolidate(mstate av)
maxfb = &fastbin (av, NFASTBINS - 1);
fb = &fastbin (av, 0);
do {
- p = atomic_exchange_acq (fb, 0);
+ p = atomic_exchange_acq (fb, NULL);
if (p != 0) {
do {
check_inuse_chunk(av, p);