]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Fix uninitialised usage of curarg
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 12 Sep 2010 09:01:21 +0000 (11:01 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 12 Sep 2010 09:01:21 +0000 (11:01 +0200)
grub-core/lib/legacy_parse.c

index 4e038807c14c4d17f97e4a9de0212b7065e8af76..797594c1520243e80b555c65918f8634187825eb 100644 (file)
@@ -411,10 +411,10 @@ grub_legacy_parse (const char *buf, char **entryname, int *suffix)
   {
     unsigned j = 0;
     int hold_arg = 0;
+    const char *curarg = NULL; 
     for (i = 0; i < legacy_commands[cmdnum].argc; i++)
       {
-       const char *curarg;
-       grub_size_t curarglen;
+       grub_size_t curarglen;
        if (hold_arg)
          {
            ptr = curarg;