summary refs log tree commit diff
path: root/locale/programs/repertoire.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-09-21 15:43:20 +0000
committerUlrich Drepper <drepper@redhat.com>1999-09-21 15:43:20 +0000
commit5b5255f197c7b6355010d781370a3331ab5b68c3 (patch)
tree8d4fdec2119b89288b85217da32fdef5d32bb3ec /locale/programs/repertoire.c
parent3fa27fcb00a610e71bbf10420ba9e266cc97c8ec (diff)
downloadglibc-5b5255f197c7b6355010d781370a3331ab5b68c3.tar.gz
glibc-5b5255f197c7b6355010d781370a3331ab5b68c3.tar.xz
glibc-5b5255f197c7b6355010d781370a3331ab5b68c3.zip
Update.
1999-09-21  Ulrich Drepper  <drepper@cygnus.com>

	* locale/programs/repertoire.c (repertoire_find_value): Abort if
	rep parameter is NULL.
	(repertoire_find_symbol): Likewise.
	(repertoire_find_seq): Likewise.
Diffstat (limited to 'locale/programs/repertoire.c')
-rw-r--r--locale/programs/repertoire.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/locale/programs/repertoire.c b/locale/programs/repertoire.c
index aabe20181e..4a4ef756fa 100644
--- a/locale/programs/repertoire.c
+++ b/locale/programs/repertoire.c
@@ -465,6 +465,9 @@ repertoire_find_value (const struct repertoire_t *rep, const char *name,
 {
   void *result;
 
+  if (rep == NULL)
+    error (5, 0, _("FATAL: no repertoire map specified"));
+
   if (find_entry ((hash_table *) &rep->char_table, name, len, &result) < 0)
     return ILLEGAL_CHAR_VALUE;
 
@@ -477,6 +480,9 @@ repertoire_find_symbol (const struct repertoire_t *rep, uint32_t ucs)
 {
   void *result;
 
+  if (rep == NULL)
+    error (5, 0, _("FATAL: no repertoire map specified"));
+
   if (find_entry ((hash_table *) &rep->reverse_table, &ucs, sizeof (ucs),
 		  &result) < 0)
     return NULL;
@@ -490,6 +496,9 @@ repertoire_find_seq (const struct repertoire_t *rep, uint32_t ucs)
 {
   void *result;
 
+  if (rep == NULL)
+    error (5, 0, _("FATAL: no repertoire map specified"));
+
   if (find_entry ((hash_table *) &rep->seq_table, &ucs, sizeof (ucs),
 		  &result) < 0)
     return NULL;