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
2 changed files with 6 additions and 1 deletions
|
@ -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 a new issue