]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
authorokuji <okuji@localhost>
Sun, 25 Dec 2005 17:21:52 +0000 (17:21 +0000)
committerokuji <okuji@localhost>
Sun, 25 Dec 2005 17:21:52 +0000 (17:21 +0000)
        * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
        ENV->NAME is NULL after allocating ENV->VALUE.

ChangeLog
kern/env.c

index 5fd92d3c7b960de68d124bb6e22d19bd90f3cb8c..b8fa36b6772f4d0cddcc8b50710a3f29f245e7ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index f952422c8a3c85f55338fc049aec953cb488024b..29a2121ce02dc24cd0af30d9374d8f008d373a3e 100644 (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.  */