From 8c3c1d253f7c1f1d9b3594ceaf95166947f65742 Mon Sep 17 00:00:00 2001 From: kyungwook tak Date: Tue, 30 Sep 2014 09:33:35 +0900 Subject: [PATCH] Fix Prevent defect about array_null Change-Id: I2cd69947605d3df14c36ced7048eeef0af1edb10 Signed-off-by: kyungwook tak --- src/manager/service/file-system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manager/service/file-system.cpp b/src/manager/service/file-system.cpp index f714a89..94b2b05 100644 --- a/src/manager/service/file-system.cpp +++ b/src/manager/service/file-system.cpp @@ -169,7 +169,7 @@ UidVector FileSystem::getUIDsFromDBFile() { struct dirent pPrevDirEntry; struct dirent* pDirEntry = NULL; - while ((!readdir_r(dirp, &pPrevDirEntry, &pDirEntry)) && pDirEntry && (pDirEntry->d_name)) { + while ( (!readdir_r(dirp, &pPrevDirEntry, &pDirEntry)) && pDirEntry ) { // Ignore files with diffrent prefix if (strncmp(pDirEntry->d_name, CKM_KEY_PREFIX.c_str(), CKM_KEY_PREFIX.size())) { -- 2.7.4