Skip to content

Commit

Permalink
* locale/programs/ld-ctype.c (ctype_read): Better patch for read
Browse files Browse the repository at this point in the history
	failure.
  • Loading branch information
Ulrich Drepper committed Aug 26, 2006
1 parent d678ebc commit 7166374
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2006-08-26 Ulrich Drepper <drepper@redhat.com>

* locale/programs/ld-ctype.c (ctype_read): Better patch for read
failure.

2006-08-24 Ulrich Drepper <drepper@redhat.com>

* locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
Expand Down
5 changes: 3 additions & 2 deletions locale/programs/ld-ctype.c
Original file line number Diff line number Diff line change
Expand Up @@ -2245,6 +2245,9 @@ ctype_read (struct linereader *ldfile, struct localedef_t *result,
if (locfile_read (copy_locale, charmap) != 0)
goto skip_category;
}

if (copy_locale->categories[LC_CTYPE].ctype == NULL)
return;
}

lr_ignore_rest (ldfile, 1);
Expand All @@ -2256,8 +2259,6 @@ ctype_read (struct linereader *ldfile, struct localedef_t *result,
/* Prepare the data structures. */
ctype_startup (ldfile, result, charmap, copy_locale, ignore_content);
ctype = result->categories[LC_CTYPE].ctype;
if (ctype == NULL)
return;

/* Remember the repertoire we use. */
if (!ignore_content)
Expand Down

0 comments on commit 7166374

Please sign in to comment.