Probably, a pointer to a variable in an inner block should not
be exposed to an outer block.
Fixes: eb071e353f6b ("efi_loader: simplify 'printenv -e'")
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
[trini: Don't make guid const now]
Signed-off-by: Tom Rini <trini@konsulko.com>
char *const argv[])
{
const efi_guid_t *guid_p = NULL;
+ efi_guid_t guid;
bool verbose = true;
efi_status_t ret;
for (argc--, argv++; argc > 0 && argv[0][0] == '-'; argc--, argv++) {
if (!strcmp(argv[0], "-guid")) {
- efi_guid_t guid;
-
if (argc == 1)
return CMD_RET_USAGE;
argc--;