From 11df762e08909798c40dbefadc33488059e3f5f8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 29 May 2007 09:57:18 +0000 Subject: [PATCH] From Olar Flebbe, "Visual Studio 2005 triggered a small glitch in UnittestFramework.cpp Do not derefence it2 if it is at end()." --- examples/osgunittests/UnitTestFramework.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) );