From d2e6537efe829ff538379fae85e3395348d0af6c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 22 Apr 2004 20:17:27 +0000 Subject: [PATCH] fix potential crash --- stepmania/src/RageUtil_FileDB.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/RageUtil_FileDB.cpp b/stepmania/src/RageUtil_FileDB.cpp index 1163c3d5f8..69b1df601d 100644 --- a/stepmania/src/RageUtil_FileDB.cpp +++ b/stepmania/src/RageUtil_FileDB.cpp @@ -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 parts; split( sPath, "/", parts, false );