mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-05 15:54:13 +00:00
2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
* kern/env.c (grub_env_set): Check if ENV->VALUE instead of ENV->NAME is NULL after allocating ENV->VALUE.
This commit is contained in:
parent
0708445662
commit
ae8c027758
@ -1,3 +1,8 @@
|
||||
2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
|
||||
|
||||
* kern/env.c (grub_env_set): Check if ENV->VALUE instead of
|
||||
ENV->NAME is NULL after allocating ENV->VALUE.
|
||||
|
||||
2005-12-25 Marco Gerards <marco@gnu.org>
|
||||
|
||||
* kern/env.c (grub_env_set): Rewritten the error handling code.
|
||||
|
@ -96,7 +96,7 @@ grub_env_set (const char *var, const char *val)
|
||||
goto fail;
|
||||
|
||||
env->value = grub_strdup (val);
|
||||
if (! env->name)
|
||||
if (! env->value)
|
||||
goto fail;
|
||||
|
||||
/* Insert it in the hashtable. */
|
||||
|
Loading…
Reference in New Issue
Block a user