OSDN Git Service

2003-02-19 Jeff Johnston <jjohnstn@redhat.com>
authorjjohnstn <jjohnstn>
Wed, 19 Feb 2003 19:00:11 +0000 (19:00 +0000)
committerjjohnstn <jjohnstn>
Wed, 19 Feb 2003 19:00:11 +0000 (19:00 +0000)
        * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.

newlib/ChangeLog
newlib/libc/stdlib/mallocr.c

index e9018f7..d208616 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
+
+        * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
+
 2003-02-18  Christian Groessler  <chris@groessler.org>
 
        * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
index fa22782..5e10457 100644 (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;                                                                 \
-  if (FD) FD->bk = BK;                                                        \
-  if (BK) BK->fd = FD;                                                        \
+  FD->bk = BK;                                                        \
+  BK->fd = FD;                                                        \
 }                                                                             \
 
 /* Place p as the last remainder */