Fix the bug of DirectoryIterator 20/64520/1
authorSungbae Yoo <sungbae.yoo@samsung.com>
Fri, 1 Apr 2016 12:19:00 +0000 (21:19 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Fri, 1 Apr 2016 12:19:00 +0000 (21:19 +0900)
Change-Id: I853095afd5a7837233028015ac78fd1bcd303454
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
common/filesystem.cpp

index d5956e7..de56ef5 100644 (file)
@@ -353,10 +353,6 @@ void DirectoryIterator::next()
     std::string name;
     struct dirent entry, *ent;
 
-    if (readdir_r(directoryHandle, &entry, &ent) != 0) {
-        throw runtime::Exception(runtime::GetSystemErrorMessage());
-    }
-
     while (1) {
         if (readdir_r(directoryHandle, &entry, &ent) != 0) {
             throw runtime::Exception(runtime::GetSystemErrorMessage());