From: malaterre Date: Fri, 14 Jan 2005 23:51:40 +0000 (+0000) Subject: STYLE: Fix comment X-Git-Tag: Version1.0.bp~321 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=807a0d90cae72f14eecc7215c90395b6f5f9fee7;p=gdcm.git STYLE: Fix comment --- diff --git a/src/gdcmDirList.cxx b/src/gdcmDirList.cxx index 7f347586..3362843a 100644 --- a/src/gdcmDirList.cxx +++ b/src/gdcmDirList.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDirList.cxx,v $ Language: C++ - Date: $Date: 2005/01/14 22:53:58 $ - Version: $Revision: 1.37 $ + Date: $Date: 2005/01/14 23:51:40 $ + Version: $Revision: 1.38 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -93,7 +93,7 @@ int DirList::Explore(std::string const &dirpath, bool recursive) fileName = fileData.cFileName; if( fileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ) { - // Is the '.' and '..' usefull ? + // Need to check for . and .. to avoid infinite loop if( fileName != "." && fileName != ".." && recursive ) { numberOfFiles += Explore(dirName+fileName,recursive);