Commit eba7da2a authored by Tobias Koenig's avatar Tobias Koenig
Browse files

Prevent crash if fileName is empty

svn path=/trunk/playground/graphics/okular/; revision=605630
parent 6c53e576
......@@ -73,7 +73,7 @@ ProtocolMSITS::~ProtocolMSITS()
// A simple stat() wrapper
static bool isDirectory ( const QString & filename )
{
return filename[filename.length() - 1] == '/';
return filename.endsWith( '/' );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment