summaryrefslogtreecommitdiffstats
path: root/discover/grub2
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-24 16:11:43 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-09-24 16:16:20 +0800
commitf452571550b6c6016698a50c834087c0d8c7575b (patch)
tree19c598094bfbb5b858e99ce9481c9dbf3cc675fc /discover/grub2
parent929810788fdda45285b7426d8cdd67875271450b (diff)
downloadpetitboot-f452571550b6c6016698a50c834087c0d8c7575b.zip
petitboot-f452571550b6c6016698a50c834087c0d8c7575b.tar.gz
discover/grub2: Fix uninitialised op variable
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/grub2')
-rw-r--r--discover/grub2/builtins.c1
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;
}
OpenPOWER on IntegriCloud