From 7ea1345547df4069fa807f11226f3412a3d48e88 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 5 Aug 2011 20:46:19 +0200 Subject: [PATCH] Crashfix: Don't try to iterate through non-existing directories --- indra/llvfs/lldir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/llvfs/lldir.cpp b/indra/llvfs/lldir.cpp index 2625629c8b..0e74e5a3d5 100644 --- a/indra/llvfs/lldir.cpp +++ b/indra/llvfs/lldir.cpp @@ -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;