* locale/programs/ld-time.c (time_startup): Test for lr being
	nonzero, not time.

	* locale/programs/ld-numeric.c (numeric_finish): Don't crash if
	decimal_point is not defined.
This commit is contained in:
Ulrich Drepper
1999-11-21 06:02:35 +00:00
parent bece1bc4ec
commit 1ceb8afe3d
5 changed files with 19 additions and 3 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ time_startup (struct linereader *lr, struct localedef_t *locale,
locale->categories[LC_TIME].time =
(struct locale_time_t *) xcalloc (1, sizeof (struct locale_time_t));
if (time != NULL)
if (lr != NULL)
{
lr->translate_strings = 1;
lr->return_widestr = 1;