* grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is

NULL.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-11-03 16:04:26 +01:00
parent 9cc3581d7d
commit 1e51cabd7b
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
NULL.
2011-11-03 crocket <crockabiscuit@gmail.com>
* util/grub.d/10_linux.in: Add Slackware initrd naming.

View File

@ -296,6 +296,9 @@ grub_gettext_init_ext (const char *locale)
{
char *locale_dir;
if (!locale)
return;
locale_dir = grub_env_get ("locale_dir");
if (locale_dir == NULL)
{
@ -370,8 +373,6 @@ grub_cmd_translate (grub_command_t cmd __attribute__ ((unused)),
GRUB_MOD_INIT (gettext)
{
(void) mod; /* To stop warning. */
const char *lang;
lang = grub_env_get ("lang");