From e24174951119e8bb3829f62a9f3aed03e052d08b Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Tue, 3 May 2011 22:47:14 +0000 Subject: [PATCH] # FileSystemFilter now skips over empty paths as opposed to crashing on them. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@977 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/FileSystemFilter.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/FileSystemFilter.h b/code/FileSystemFilter.h index dccb82225..2504e8566 100644 --- a/code/FileSystemFilter.h +++ b/code/FileSystemFilter.h @@ -195,6 +195,9 @@ private: void Cleanup (std::string& in) const { char last = 0; + if(in.empty()) { + return; + } // Remove a very common issue when we're parsing file names: spaces at the // beginning of the path.