* grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
NULL.
This commit is contained in:
parent
9cc3581d7d
commit
1e51cabd7b
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue