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

Comparing ray/src/common/wordfile.c (file contents):
Revision 2.6 by greg, Fri Apr 2 09:11:35 1993 UTC vs.
Revision 2.7 by greg, Fri Jun 18 09:00:22 1993 UTC

# Line 27 | Line 27 | char   *fname;
27          char    buf[MAXFLEN];
28          register int    n;
29                                          /* load file into buffer */
30 +        if (fname == NULL)
31 +                return(-1);                     /* no filename */
32          if ((fd = open(fname, 0)) < 0)
33                  return(-1);                     /* open error */
34          n = read(fd, buf, MAXFLEN);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines