2002-04-14  Bruno Haible  <bruno@clisp.org>

	* locale/programs/charmap.c (charmap_read): Don't access result if
	result == NULL.
This commit is contained in:
Ulrich Drepper 2002-04-15 17:35:59 +00:00
parent a41d8a74ee
commit 659f290ad4
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-04-14 Bruno Haible <bruno@clisp.org>
* locale/programs/charmap.c (charmap_read): Don't access result if
result == NULL.
2002-02-17 Andreas Schwab <schwab@suse.de>
* reldep7.c: New file.

View File

@ -194,7 +194,7 @@ character map file `%s' not found"), filename));
default character map file `%s' not found"), DEFAULT_CHARMAP));
}
if (result->code_set_name == NULL)
if (result != NULL && result->code_set_name == NULL)
/* The input file does not specify a code set name. This
shouldn't happen but we should cope with it. */
result->code_set_name = basename (filename);