Fix a bad test resulting in a segfault with ISO-8859-5 locales
Reported by: Lauri Tirkkonen from Illumos Approved by: re@ (gjb)
This commit is contained in:
parent
d12d6a8476
commit
a8bacd6f93
@ -310,7 +310,7 @@ _collate_lookup(struct xlocale_collate *table, const wchar_t *t, int *len,
|
||||
if ((sptr = *state) != NULL) {
|
||||
*pri = *sptr;
|
||||
sptr++;
|
||||
if ((sptr == *state) || (sptr == NULL))
|
||||
if ((sptr == *state) || (*sptr == 0))
|
||||
*state = NULL;
|
||||
else
|
||||
*state = sptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user