discover/grub2: Fix uninitialised op variable
authorJeremy Kerr <jk@ozlabs.org>
Tue, 24 Sep 2013 08:11:43 +0000 (16:11 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 24 Sep 2013 08:16:20 +0000 (16:16 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/grub2/builtins.c

index 0716276e9bbf78bcafdfabce36e8c38bbcd8556e..7a5d8672a6a89285bfe268732dbb57ec04892d25 100644 (file)
@@ -178,6 +178,7 @@ static bool builtin_test_op(int argc, char **argv, int *consumed)
                }
        }
 
                }
        }
 
+       op = argv[0];
        *consumed = 1;
        return strlen(op) > 0;
 }
        *consumed = 1;
        return strlen(op) > 0;
 }