summaryrefslogtreecommitdiffstats
path: root/tdeioslave
diff options
context:
space:
mode:
Diffstat (limited to 'tdeioslave')
-rw-r--r--tdeioslave/file/file.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tdeioslave/file/file.cc b/tdeioslave/file/file.cc
index 1caeaef3e..75b3b17a1 100644
--- a/tdeioslave/file/file.cc
+++ b/tdeioslave/file/file.cc
@@ -1222,8 +1222,9 @@ void FileProtocol::listDir( const KURL& url)
// files where TQFile::encodeName(TQFile::decodeName(a)) != a.
TQStrList entryNames;
- while ( ( ep = KDE_readdir( dp ) ) != 0L )
+ while ( ( ep = KDE_readdir( dp ) ) != 0L ) {
entryNames.append( ep->d_name );
+ }
closedir( dp );
totalSize( entryNames.count() );