From 2828fe2fd6d3698dc1686811c17675e74afd1642 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 1 Mar 2013 06:13:50 +0100 Subject: coverity#705109: use of invalid iterator Change-Id: I9c16071a4182801ef5fed8b3d3661accce596716 --- l10ntools/source/directory.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'l10ntools') diff --git a/l10ntools/source/directory.cxx b/l10ntools/source/directory.cxx index 468bfbd67837..0571f5eb8f9b 100644 --- a/l10ntools/source/directory.cxx +++ b/l10ntools/source/directory.cxx @@ -67,7 +67,7 @@ void Directory::scanSubDir( int nLevels ) readDirectory( sFullName ); dump(); if( nLevels > 0 ) { - for( std::vector< transex::Directory >::iterator iter = aDirVec.begin() ; iter != aDirVec.end() || nLevels > 0 ; ++iter , nLevels-- ) + for( std::vector< transex::Directory >::iterator iter = aDirVec.begin() ; iter != aDirVec.end() && nLevels > 0 ; ++iter , nLevels-- ) { ( *iter ).scanSubDir(); } -- cgit