diff --git a/cmFileSys.c b/cmFileSys.c index a5855fc..2c72103 100644 --- a/cmFileSys.c +++ b/cmFileSys.c @@ -921,7 +921,7 @@ cmFsRC_t _cmFileSysDirGetEntries( cmFileSysDeRecd_t* drp, const cmChar_t* dirSt while((dp = readdir(dirp)) != NULL ) { // validate d_name - if( (dp->d_name != NULL) && ((dn = strlen(dp->d_name)) > 0) ) + if( (dn = strlen(dp->d_name)) > 0 ) { unsigned flags = 0;