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

Comparing ray/src/common/readfargs.c (file contents):
Revision 2.9 by schorsch, Thu Jun 26 00:58:09 2003 UTC vs.
Revision 2.10 by schorsch, Sun Jul 27 22:12:01 2003 UTC

# Line 26 | Line 26 | FILE  *fp;
26  
27          if (!getint(sbuf) || (n = atoi(sbuf)) < 0)
28                  return(0);
29 <        if (fa->nsargs = n) {
29 >        if ( (fa->nsargs = n) ) {
30                  fa->sarg = (char **)malloc(n*sizeof(char *));
31                  if (fa->sarg == NULL)
32                          return(-1);
# Line 57 | Line 57 | FILE  *fp;
57   #endif
58          if (!getint(sbuf) || (n = atoi(sbuf)) < 0)
59                  return(0);
60 <        if (fa->nfargs = n) {
60 >        if ( (fa->nfargs = n) ) {
61                  fa->farg = (RREAL *)malloc(n*sizeof(RREAL));
62                  if (fa->farg == NULL)
63                          return(-1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines