aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cbs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cbs.h b/cbs.h
index 433c767..668db72 100644
--- a/cbs.h
+++ b/cbs.h
@@ -233,7 +233,7 @@ fmdcmp(const char *lhs, const char *rhs)
int errnol, errnor;
struct stat sbl, sbr;
- stat(lhs, &sbl); errnol = errno;
+ stat(lhs, &sbl); errnol = errno; errno = 0;
stat(rhs, &sbr); errnor = errno;
assert(errnol == 0 || errnol == ENOENT);