summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}