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

Comparing ray/src/rt/source.c (file contents):
Revision 1.21 by greg, Tue Mar 27 11:40:13 1990 UTC vs.
Revision 1.22 by greg, Tue Nov 13 14:32:30 1990 UTC

# Line 310 | Line 310 | char  *p;                      /* data for f */
310          double  prob, ourthresh, hwt, test2, hit2;
311          RAY  sr;
312  
313 +        if (nsources <= 0)
314 +                return;
315          srccnt = (CONTRIB *)malloc(nsources*sizeof(CONTRIB));
316          cntord = (CNTPTR *)malloc(nsources*sizeof(CNTPTR));
317          if (srccnt == NULL || cntord == NULL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines