From 7bd3a4eadbf78212ce93f974353e64136ee4e978 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 9 Dec 1999 08:21:40 +0000 Subject: Update. 1999-12-09 Ulrich Drepper * locale/programs/ld-collate.c (insert_value): If this is the first symbol the cursor can be the same as the next pointer. --- locale/programs/ld-collate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'locale') diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c index 0d6e113827..2858f641d6 100644 --- a/locale/programs/ld-collate.c +++ b/locale/programs/ld-collate.c @@ -457,7 +457,8 @@ insert_value (struct linereader *ldfile, struct token *arg, return; /* Test whether this element is not already in the list. */ - if (elem->next != NULL || elem->next == collate->cursor) + if (elem->next != NULL || (collate->cursor != NULL + && elem->next == collate->cursor)) { lr_error (ldfile, _("order for `%.*s' already defined at %s:%Z"), arg->val.str.lenmb, arg->val.str.startmb, -- cgit v1.2.3