summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-01-22 22:54:51 +0000
committerJim Meyering <jim@meyering.net>2000-01-22 22:54:51 +0000
commit45d534215aac91ce1b30b774006c124a8299d817 (patch)
treea689d90b68be622a418268bb8363639f4b033622
parent1a50efcd039bcc49c173d0d357c949c5638af75a (diff)
downloadcoreutils-45d534215aac91ce1b30b774006c124a8299d817.tar.xz
(keycompare): Use global, hard_LC_COLLATE in place of
local that is sometimes undeclared.
-rw-r--r--src/sort.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sort.c b/src/sort.c
index 8f7a03b23..1d0741944 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -1087,7 +1087,6 @@ keycompare (const struct line *a, const struct line *b)
register char *lima = a->keylim;
register char *limb = b->keylim;
- int hard_collate = hard_LC_COLLATE;
int diff, lena, lenb;
for (;;)
@@ -1127,7 +1126,7 @@ keycompare (const struct line *a, const struct line *b)
#ifdef ENABLE_NLS
/* Sorting like this may become slow, so in a simple locale the user
can select a faster sort that is similar to ascii sort */
- else if (hard_collate)
+ else if (hard_LC_COLLATE)
{
if (ignore || translate)
{