aboutsummaryrefslogtreecommitdiff
path: root/malloc/malloc.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-10-11 16:29:13 +0000
committerUlrich Drepper <drepper@redhat.com>2006-10-11 16:29:13 +0000
commit6c7e1cf59e14689cf1af78550ba3f9b0f1302b2c (patch)
tree4f7e0074f66f74dd5a936358b9ae653c87dcf6c5 /malloc/malloc.c
parent8099361ecd23167ddbb8585a375cbacbcffb64c4 (diff)
downloadglibc-6c7e1cf59e14689cf1af78550ba3f9b0f1302b2c.zip
glibc-6c7e1cf59e14689cf1af78550ba3f9b0f1302b2c.tar.gz
glibc-6c7e1cf59e14689cf1af78550ba3f9b0f1302b2c.tar.bz2
* malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
* nis/nis_defaults.c (__nis_default_access): Don't call getenv twice. * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv. * sysdeps/generic/unsecvars.h: Add NIS_PATH.
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r--malloc/malloc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index a369001..c385529 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -4097,7 +4097,6 @@ _int_malloc(mstate av, size_t bytes)
for(;;) {
int iters = 0;
- bool any_larger = false;
while ( (victim = unsorted_chunks(av)->bk) != unsorted_chunks(av)) {
bck = victim->bk;
if (__builtin_expect (victim->size <= 2 * SIZE_SZ, 0)
@@ -4194,8 +4193,6 @@ _int_malloc(mstate av, size_t bytes)
fwd->bk = victim;
bck->fd = victim;
- if (size >= nb + MINSIZE)
- any_larger = true;
#define MAX_ITERS 10000
if (++iters >= MAX_ITERS)
break;