4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-18 12:29:32 +08:00

2003-02-18 Earnie Boyd <earnie@users.sf.net>

* libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
        with a NULL value.
This commit is contained in:
Jeff Johnston 2003-02-18 22:34:02 +00:00
parent 872173c8be
commit b1ca765e84
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-02-18 Earnie Boyd <earnie@users.sf.net>
* libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
with a NULL value.
2003-02-10 Christopher Faylor <cgf@redhat.com>
* libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.

View File

@ -1936,8 +1936,8 @@ static void do_check_malloced_chunk(p, s) mchunkptr p; INTERNAL_SIZE_T s;
{ \
BK = P->bk; \
FD = P->fd; \
FD->bk = BK; \
BK->fd = FD; \
if (FD) FD->bk = BK; \
if (BK) BK->fd = FD; \
} \
/* Place p as the last remainder */