+2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
+
+ * memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
+ Problem and fix reported by Pádraig Brady in
+ <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
+
2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
* memcoll.c (memcoll): Optimize for the common case where the
the buffers using strcoll on each substring. */
if (s1len == s2len && memcmp (s1, s2, s1len) == 0)
- diff = 0;
+ {
+ errno = 0;
+ diff = 0;
+ }
else
{
char n1 = s1[s1len];