fix potential crash
This commit is contained in:
@@ -273,6 +273,9 @@ void FilenameDB::AddFileSet( CString sPath, FileSet *fs )
|
|||||||
* a slash. */
|
* a slash. */
|
||||||
void FilenameDB::AddFile( const CString &sPath, int size, int hash, void *priv )
|
void FilenameDB::AddFile( const CString &sPath, int size, int hash, void *priv )
|
||||||
{
|
{
|
||||||
|
if( sPath == "" )
|
||||||
|
return;
|
||||||
|
|
||||||
vector<CString> parts;
|
vector<CString> parts;
|
||||||
split( sPath, "/", parts, false );
|
split( sPath, "/", parts, false );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user