From f97372e74a360eaef1fd86fd9968f62ebcbca709 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 21 Jun 2024 23:59:52 +0200 Subject: Reset errno to 0 --- cbs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3