Crashfix: Don't try to iterate through non-existing directories

meow-7.2.2
Ansariel 2011-08-05 20:46:19 +02:00
parent b983d1b18f
commit 7ea1345547
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ LLDir::~LLDir()
S32 LLDir::deleteFilesInDir(const std::string &dirname, const std::string &mask)
{
if (!fileExists(dirname)) return 0;
S32 count = 0;
std::string filename;
std::string fullpath;