Skip to content

Commit

Permalink
[core] attempt to quiet coverity warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gstrauss committed Jul 29, 2023
1 parent 6b06de4 commit d823980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/configfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d823980

Please sign in to comment.