diff options
Diffstat (limited to 'src/cppunit/TestPath.cpp')
| -rw-r--r-- | src/cppunit/TestPath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cppunit/TestPath.cpp b/src/cppunit/TestPath.cpp index 2f4903f..6a73b43 100644 --- a/src/cppunit/TestPath.cpp +++ b/src/cppunit/TestPath.cpp @@ -226,7 +226,7 @@ bool TestPath::splitPathString( const std::string &pathAsString, PathTestNames &testNames ) { - bool isRelative = (pathAsString.substr(0,1) != "/"); + bool isRelative = pathAsString.length() && pathAsString[0] != "/"; int index = (isRelative ? 0 : 1); while ( true ) |
