]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/glibc/glibc-rh1256890.patch
lcdproc: Update to 0.5.7
[ipfire-2.x.git] / src / patches / glibc / glibc-rh1256890.patch
1 diff -pruN glibc-2.12-2-gc4ccff1/malloc/malloc.c glibc-2.12-2-gc4ccff1.new/malloc/malloc.c
2 --- glibc-2.12-2-gc4ccff1/malloc/malloc.c 2015-08-19 23:13:52.826205930 +0530
3 +++ glibc-2.12-2-gc4ccff1.new/malloc/malloc.c 2015-08-19 23:13:40.021049289 +0530
4 @@ -5867,7 +5867,7 @@ _int_pvalloc(av, bytes) mstate av, size_
5 size_t pagesz;
6
7 /* Ensure initialization/consolidation */
8 - if (have_fastchunks(av)) malloc_consolidate(av);
9 + if (av && have_fastchunks(av)) malloc_consolidate(av);
10 pagesz = mp_.pagesize;
11 return _int_memalign(av, pagesz, (bytes + pagesz - 1) & ~(pagesz - 1));
12 }