Changeset 68 for trunk/src/sh_files.c
- Timestamp:
- Oct 30, 2006, 12:03:44 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_files.c
r61 r68 1563 1563 */ 1564 1564 sl_strlcpy (theFile.fullpath, iname, PATH_MAX); 1565 theFile.attr_string = NULL; 1565 1566 1566 1567 (void) relativeName; … … 1571 1572 if ((sig_termfast == 1) || (sig_terminate == 1)) 1572 1573 { 1574 if (theFile.attr_string) SH_FREE(theFile.attr_string); 1573 1575 SL_RETURN((0), _("sh_files_checkdir")); 1574 1576 } … … 1577 1579 { 1578 1580 SH_FREE(tmpname); 1581 if (theFile.attr_string) SH_FREE(theFile.attr_string); 1579 1582 SL_RETURN((-1), _("sh_files_checkdir")); 1580 1583 } … … 1586 1589 tmpname); 1587 1590 SH_FREE(tmpname); 1591 if (theFile.attr_string) SH_FREE(theFile.attr_string); 1588 1592 SL_RETURN((-1), _("sh_files_checkdir")); 1589 1593 } … … 1607 1611 SH_FREE(tmpname); 1608 1612 1613 if (theFile.attr_string) SH_FREE(theFile.attr_string); 1609 1614 SL_RETURN((-1), _("sh_files_checkdir")); 1610 1615 } … … 1660 1665 if (sig_termfast == 1) 1661 1666 { 1667 if (theFile.attr_string) SH_FREE(theFile.attr_string); 1662 1668 SL_RETURN((0), _("sh_files_checkdir")); 1663 1669 } … … 1850 1856 if ((sig_termfast == 1) || (sig_terminate == 1)) 1851 1857 { 1858 if (theFile.attr_string) SH_FREE(theFile.attr_string); 1852 1859 SL_RETURN((0), _("sh_files_checkdir")); 1853 1860 } … … 1896 1903 #endif 1897 1904 1905 if (theFile.attr_string) SH_FREE(theFile.attr_string); 1898 1906 SH_FREE(tmpname); 1899 1907 … … 1986 1994 */ 1987 1995 sl_strlcpy (theFile.fullpath, fullpath, PATH_MAX); 1988 theFile.check_mask = sh_files_maskof(class); 1989 theFile.reported = (*reported); 1996 theFile.check_mask = sh_files_maskof(class); 1997 theFile.reported = (*reported); 1998 theFile.attr_string = NULL; 1990 1999 1991 2000 TPT(( 0, FIL__, __LINE__, _("msg=<checking file: %s>\n"), fullpath)); … … 2001 2010 fullpath, status)); 2002 2011 if (class == SH_LEVEL_ALLIGNORE && sh.flag.checkSum != SH_CHECK_INIT) 2003 sh_hash_set_visited_true (fullpath); 2012 sh_hash_set_visited_true (fullpath); 2013 if (theFile.attr_string) 2014 SH_FREE(theFile.attr_string); 2004 2015 SL_RETURN(SH_FILE_UNKNOWN, _("sh_files_filecheck")); 2005 2016 } … … 2080 2091 } 2081 2092 #else 2082 2093 (void) rsrcflag; /* avoid compiler warning */ 2083 2094 #endif 2084 2095 2085 2096 ret_point: 2097 2098 if (theFile.attr_string) SH_FREE(theFile.attr_string); 2086 2099 2087 2100 switch (theFile.c_mode[0])
Note:
See TracChangeset
for help on using the changeset viewer.