summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/strerror.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/strerror.c b/lib/strerror.c
index 9b2fc26c2..0216c7193 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -721,7 +721,9 @@ const char *Curl_strerror(int err, char *buf, size_t buflen)
if(!buflen)
return NULL;
+#ifndef WIN32
DEBUGASSERT(err >= 0);
+#endif
max = buflen - 1;
*buf = '\0';