fix potential crash

This commit is contained in:
Glenn Maynard
2004-04-22 20:17:27 +00:00
parent 34b00ee02a
commit d2e6537efe
+3
View File
@@ -273,6 +273,9 @@ void FilenameDB::AddFileSet( CString sPath, FileSet *fs )
* a slash. */
void FilenameDB::AddFile( const CString &sPath, int size, int hash, void *priv )
{
if( sPath == "" )
return;
vector<CString> parts;
split( sPath, "/", parts, false );