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

Comparing ray/src/util/rpiece.c (file contents):
Revision 2.29 by greg, Mon Feb 28 09:22:32 1994 UTC vs.
Revision 2.30 by greg, Mon Apr 11 14:44:10 1994 UTC

# Line 345 | Line 345 | register int  *xp, *yp;
345                  return(0);              /* only check if asked */
346          if (pdone == NULL)              /* first call */
347                  pdone = calloc(hmult*vmult, sizeof(char));
348 +        if (pdone == NULL) {
349 +                fprintf(stderr, "%s: out of memory\n", progname);
350 +                exit(1);
351 +        }
352          if (readpos != -1)              /* mark what's been done */
353                  fseek(syncfp, readpos, 0);
354          while (fscanf(syncfp, "%d %d", xp, yp) == 2)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines