diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-09-24 16:11:43 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-09-24 16:16:20 +0800 |
commit | f452571550b6c6016698a50c834087c0d8c7575b (patch) | |
tree | 19c598094bfbb5b858e99ce9481c9dbf3cc675fc /discover | |
parent | 929810788fdda45285b7426d8cdd67875271450b (diff) | |
download | petitboot-f452571550b6c6016698a50c834087c0d8c7575b.zip petitboot-f452571550b6c6016698a50c834087c0d8c7575b.tar.gz |
discover/grub2: Fix uninitialised op variable
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r-- | discover/grub2/builtins.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/grub2/builtins.c b/discover/grub2/builtins.c index 0716276..7a5d867 100644 --- a/discover/grub2/builtins.c +++ b/discover/grub2/builtins.c @@ -178,6 +178,7 @@ static bool builtin_test_op(int argc, char **argv, int *consumed) } } + op = argv[0]; *consumed = 1; return strlen(op) > 0; } |