[core] attempt to quiet coverity warning

This commit is contained in:
Glenn Strauss 2023-07-29 17:07:21 -04:00
parent 6b06de447d
commit d8239801cd
1 changed files with 1 additions and 1 deletions

View File

@ -2648,7 +2648,7 @@ static int
config_stat_isdir (const char * const path, struct stat * const st)
{
return
!(-1 == stat(path, st) || (!S_ISDIR(st->st_mode) && (errno = ENOTDIR)));
!(-1 == stat(path, st) || (S_ISDIR(st->st_mode) ? 0 : (errno = ENOTDIR)));
}
int