Browse Source

# 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
aramis_acg 14 years ago
parent
commit
e241749511
1 changed files with 3 additions and 0 deletions
  1. 3 0
      code/FileSystemFilter.h

+ 3 - 0
code/FileSystemFilter.h

@@ -195,6 +195,9 @@ private:
 	void Cleanup (std::string& in) const
 	void Cleanup (std::string& in) const
 	{
 	{
 		char last = 0;
 		char last = 0;
+		if(in.empty()) {
+			return;
+		}
 
 
 		// Remove a very common issue when we're parsing file names: spaces at the
 		// Remove a very common issue when we're parsing file names: spaces at the
 		// beginning of the path. 
 		// beginning of the path.