summary refs log tree commit diff
path: root/locale/programs/charmap.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-04-15 17:35:59 +0000
committerUlrich Drepper <drepper@redhat.com>2002-04-15 17:35:59 +0000
commit659f290ad4891da6c88e81b2c9649de1b3bf74ae (patch)
tree02325448c8aaee5d7d23c44b78f6ab8585245b98 /locale/programs/charmap.c
parenta41d8a74ee92f66068ff1323b6de3e703306bfe2 (diff)
downloadglibc-659f290ad4891da6c88e81b2c9649de1b3bf74ae.tar.gz
glibc-659f290ad4891da6c88e81b2c9649de1b3bf74ae.tar.xz
glibc-659f290ad4891da6c88e81b2c9649de1b3bf74ae.zip
Update.
2002-04-14  Bruno Haible  <bruno@clisp.org>

	* locale/programs/charmap.c (charmap_read): Don't access result if
	result == NULL.
Diffstat (limited to 'locale/programs/charmap.c')
-rw-r--r--locale/programs/charmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/programs/charmap.c b/locale/programs/charmap.c
index 82d5fb349f..0aa623bf34 100644
--- a/locale/programs/charmap.c
+++ b/locale/programs/charmap.c
@@ -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);