Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-02-19 01:34:02 +0300
committerJeff Johnston <jjohnstn@redhat.com>2003-02-19 01:34:02 +0300
commitb1ca765e841a6347450cea6738e5b40a692a2aba (patch)
tree43d19500f3eb4c7864748709ade40a2e2ac4b157 /newlib/libc/stdlib/mallocr.c
parent872173c8be8f8f1bd134bc573bb86a51e9097fa6 (diff)
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.
Diffstat (limited to 'newlib/libc/stdlib/mallocr.c')
-rw-r--r--newlib/libc/stdlib/mallocr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdlib/mallocr.c b/newlib/libc/stdlib/mallocr.c
index 3da707e3d..fa2278224 100644
--- a/newlib/libc/stdlib/mallocr.c
+++ b/newlib/libc/stdlib/mallocr.c
@@ -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 */