ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/malloc.c
(Generate patch)

Comparing ray/src/common/malloc.c (file contents):
Revision 2.4 by greg, Sat Feb 8 13:16:01 1992 UTC vs.
Revision 2.5 by greg, Mon Jun 29 22:39:51 1992 UTC

# Line 362 | Line 362 | unsigned       n;
362          if (n <= on && (n > on>>1 || on == 1<<FIRSTBUCKET))
363                  return(op);             /* same bucket */
364          if ((p = malloc(n)) == NULL)
365 <                return(NULL);
365 >                return(n<=on ? op : NULL);
366          if (on) {
367   #ifdef  BSD
368                  bcopy(op, p, n>on ? on : n);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines