projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a77fc13
)
(memcoll) [!HAVE_STRCOLL]: Clear errno.
author
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 18 Jul 2003 17:49:25 +0000
(17:49 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 18 Jul 2003 17:49:25 +0000
(17:49 +0000)
lib/memcoll.c
patch
|
blob
|
history
diff --git
a/lib/memcoll.c
b/lib/memcoll.c
index
2bb33fd
..
38d2bdf
100644
(file)
--- a/
lib/memcoll.c
+++ b/
lib/memcoll.c
@@
-1,5
+1,5
@@
/* Locale-specific memory comparison.
/* Locale-specific memory comparison.
- Copyright (C) 1999, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2002
, 2003
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-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;
diff = memcmp (s1, s2, s1len < s2len ? s1len : s2len);
if (! diff)
diff = s1len < s2len ? -1 : s1len != s2len;
+ errno = 0;
#endif
#endif