From 289e8e7ea11afad41aaac7d43400bf4ee28aada5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 1 Apr 2000 17:53:24 +0000 Subject: Update. * locale/programs/ld-collate.c (check_duplicate): Allow repertoire to be missing. --- locale/programs/ld-collate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'locale/programs/ld-collate.c') diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c index aee98df..9b9db42 100644 --- a/locale/programs/ld-collate.c +++ b/locale/programs/ld-collate.c @@ -347,7 +347,9 @@ check_duplicate (struct linereader *ldfile, struct locale_collate_t *collate, return 1; } - if (find_entry (&repertoire->char_table, symbol, symbol_len, &ignore) == 0) + if (repertoire != NULL + && (find_entry (&repertoire->char_table, symbol, symbol_len, &ignore) + == 0)) { lr_error (ldfile, _("`%.*s' already defined in repertoire"), (int) symbol_len, symbol); -- cgit v1.1