diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-01 06:13:50 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-01 07:00:10 +0100 |
commit | 2828fe2fd6d3698dc1686811c17675e74afd1642 (patch) | |
tree | f47f400befb6b8095b003a24d32c1c91688786e8 | |
parent | 6de8f018b687d37d01d04fde9156438a5c7eed9d (diff) |
coverity#705109: use of invalid iterator
Change-Id: I9c16071a4182801ef5fed8b3d3661accce596716
-rw-r--r-- | l10ntools/source/directory.cxx | 2 |
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(); } |