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:
okuji 2005-12-25 17:21:52 +00:00
parent 0708445662
commit ae8c027758
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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. */