From e952578cab6c954c3804323fb5ff256858c3b86c Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Wed, 6 Jun 2018 18:26:42 -0400 Subject: [PATCH] Fix Windows strerror_r() implementation Commit 6351586a771e9a99e1e946cc9a0b6a87bbb14094 (ticket 7961) introduced several variants of strerror_r(). The Windows one contained a bug which made its return value undefined; fix that. ticket: 8690 (new) --- src/util/support/strerror_r.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/support/strerror_r.c b/src/util/support/strerror_r.c index e1ca565107..090e179123 100644 --- a/src/util/support/strerror_r.c +++ b/src/util/support/strerror_r.c @@ -46,6 +46,7 @@ k5_strerror_r(int errnum, char *buf, size_t buflen) errno = st; return -1; } + return 0; } #elif !defined(HAVE_STRERROR_R) -- 2.47.2