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

Comparing ray/src/common/error.c (file contents):
Revision 2.4 by gregl, Tue Nov 11 19:02:15 1997 UTC vs.
Revision 2.5 by gregl, Tue Dec 2 15:54:44 1997 UTC

# Line 30 | Line 30 | char  *emsg;
30                  return;
31          ep = erract + etype;
32          if (ep->pf != NULL) {
33 <                (*ep->pf)(ep->pre);
34 <                (*ep->pf)(emsg);
33 >                if (ep->pre[0]) (*ep->pf)(ep->pre);
34 >                if (emsg != NULL && emsg[0]) (*ep->pf)(emsg);
35                  if (etype == SYSTEM && errno > 0) {
36                          (*ep->pf)(": ");
37                          if (errno <= sys_nerr)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines