diff options
-rw-r--r-- | lib/memcoll.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/memcoll.c b/lib/memcoll.c index 1176da15a..38d2bdfbd 100644 --- a/lib/memcoll.c +++ b/lib/memcoll.c @@ -83,6 +83,7 @@ memcoll (char *s1, size_t s1len, char *s2, size_t s2len) diff = memcmp (s1, s2, s1len < s2len ? s1len : s2len); if (! diff) diff = s1len < s2len ? -1 : s1len != s2len; + errno = 0; #endif |