mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +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:
1 parent
0708445662
commit
ae8c027758
2 files changed
+6
-1
No files matched your search
@@ -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.
|
||||
|
||||
+1
-1
@@ -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. */
|
||||
|
||||
Reference in new issue
Block a user