summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-01 06:13:50 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-01 07:00:10 +0100
commit2828fe2fd6d3698dc1686811c17675e74afd1642 (patch)
treef47f400befb6b8095b003a24d32c1c91688786e8 /l10ntools
parent6de8f018b687d37d01d04fde9156438a5c7eed9d (diff)
coverity#705109: use of invalid iterator
Change-Id: I9c16071a4182801ef5fed8b3d3661accce596716
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/directory.cxx2
1 files changed, 1 insertions, 1 deletions
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();
}