This fixes another coverity-spotted issue:
2011-06-11 Jim Meyering
avoid NULL deref in initialization
* grub-core/gettext/gettext.c (GRUB_MOD_INIT): If grub_env_get ("lang")
returns NULL, use "C".
=== modified file 'grub-core/gettext/gettext
In execute.c, coverity dinged this potential NULL-deref:
163 return grub_strtoul (grub_env_get ("?"), NULL, 10);
If grub_env_get ("?") can indeed return NULL,
you'll want to accommodate the possibility.
It would be nice to do that even if somehow
a NULL return is not possible, just to a
I ran coverity against grub.
Here's a fix for one of the things it spotted:
2011-06-11 Jim Meyering
avoid NULL deref in grub_device_open
* grub-core/kern/device.c (grub_device_open): Don't dereference
a NULL pointer upon failed grub_env_get.
=== modified
Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> A source tarball for the new release can be found at:
>
> http://alpha.gnu.org/gnu/grub/grub-1.99~rc2.tar.gz
Hi Vladimir,
Congratulations.
In case you feel like also distributing xz-compressed files,
I've included a simple patch below. Using xz -