From d8239801cd97e65a8537da8da472854d54fc4c54 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sat, 29 Jul 2023 17:07:21 -0400 Subject: [PATCH] [core] attempt to quiet coverity warning --- src/configfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configfile.c b/src/configfile.c index 98da9e503..0470e6429 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -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