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

Comparing ray/src/common/savqstr.c (file contents):
Revision 2.4 by greg, Tue Feb 25 02:47:22 2003 UTC vs.
Revision 2.5 by greg, Mon Mar 10 17:13:29 2003 UTC

# Line 1 | Line 1
1   #ifndef lint
2 < static const char       RCSid[] = "$Id$";
2 > static const char RCSid[] = "$Id$";
3   #endif
4   /*
5   *  Save unshared strings.
# Line 40 | Line 40 | void
40   freeqstr(s)                     /* free a private string */
41   char  *s;
42   {
43 <        free((void *)s);
43 >        if (s != NULL)
44 >                free((void *)s);
45   }
46  
47   #else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines