aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cbs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cbs.h b/cbs.h
index 9220ed1..858982b 100644
--- a/cbs.h
+++ b/cbs.h
@@ -214,6 +214,7 @@ fmdcmp(const char *lhs, const char *rhs)
struct stat sbl, sbr;
stat(lhs, &sbl); errnol = errno;
+ errno = 0;
stat(rhs, &sbr); errnor = errno;
assert(errnol == 0 || errnol == ENOENT);