(collate_output): Don't crash if a character has no weight.
authordrepper <drepper>
Thu, 10 Dec 1998 09:51:37 +0000 (09:51 +0000)
committerdrepper <drepper>
Thu, 10 Dec 1998 09:51:37 +0000 (09:51 +0000)
locale/programs/ld-collate.c

index b9734c3..5accaab 100644 (file)
@@ -812,6 +812,8 @@ Computing table size for collation information might take a while..."),
                  lastp = firstp;
                  while (lastp->next != NULL && wcscmp (name, lastp->name))
                    lastp = lastp->next;
+                 if (lastp->ordering == NULL)
+                   lastp = &collate->undefined;
                }
 
              weights = lastp->ordering;