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

Comparing ray/src/util/rtcontrib.c (file contents):
Revision 1.22 by greg, Tue Jun 14 02:50:23 2005 UTC vs.
Revision 1.23 by greg, Thu Jun 16 19:37:26 2005 UTC

# Line 1030 | Line 1030 | recover_output(FILE *fin)
1030                                  error(USER, "cannot recover from command");
1031                                                  /* open output */
1032                          fp = fopen(oname, "rb+");
1033 <                        if (fp == NULL)
1034 <                                break;          /* must be end of modifier */
1033 >                        if (fp == NULL) {
1034 >                                if (j)
1035 >                                        break;  /* assume end of modifier */
1036 >                                sprintf(errmsg, "missing recover file '%s'",
1037 >                                                oname);
1038 >                                error(USER, errmsg);
1039 >                        }
1040                          nvals = lseek(fileno(fp), 0, SEEK_END);
1041                          if (nvals <= 0) {
1042                                  lastout = 0;    /* empty output, quit here */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines