Update FileSystemFilter.h

- Fix typo.
-test in public metod against invalid parameters
pull/1805/head
Kim Kulling 2018-02-21 13:10:51 +01:00 committed by GitHub
parent a92dbabc25
commit 22dbb6c2d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public:
if ( mBase.empty() ) {
mBase = ".";
mBase += getOsSeparator();
} else if ((s = *(base.end()-1)) != '\\' && s != '/') {
} else if ((s = *(mBase.end()-1)) != '\\' && s != '/') {
mBase += getOsSeparator();
}
@ -123,6 +123,10 @@ public:
/** Open a new file with a given path. */
IOStream* Open( const char* pFile, const char* pMode = "rb") {
ai_assert( nullptr != mWrapped );
if ( nullptr == pFile || nullptr == pMode ) {
return nullptr;
}
ai_assert( nullptr != pFile );
ai_assert( nullptr != pMode );