diff --git a/examples/osgunittests/UnitTestFramework.cpp b/examples/osgunittests/UnitTestFramework.cpp index 1c550c171..761dfd85d 100644 --- a/examples/osgunittests/UnitTestFramework.cpp +++ b/examples/osgunittests/UnitTestFramework.cpp @@ -100,7 +100,7 @@ TestSuite* TestGraph::suite(const std::string& path, TestSuite* tsuite, bool cre // Dissect the path into it's constituent components do{ - while( *it2 != '.' && it2 != path.end() ) ++it2; + while( it2 != path.end() && *it2 != '.' ) ++it2; // Consider a check for "" empty strings? pathComponents.push_back( std::string(it1,it2) );