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

Comparing ray/src/common/win_process.c (file contents):
Revision 3.7 by greg, Thu Jun 14 05:13:25 2012 UTC vs.
Revision 3.8 by greg, Fri Nov 8 18:08:07 2013 UTC

# Line 279 | Line 279 | open_process(SUBPROC *proc, char *av[])
279          char *cmdpath;
280          char *cmdstr;
281  
282 +        if (av == NULL || av[0] == NULL) {
283 +                fputs("Illegal call to open_process()!\n", stderr);
284 +                return -1;
285 +        }
286          proc->running = 0;
287          if (av == NULL) { return -1; }
288          cmdpath = getpath(av[0], getenv("PATH"), X_OK);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines