diff options
Diffstat (limited to 'discover')
-rw-r--r-- | discover/grub2/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/grub2/script.c b/discover/grub2/script.c index 48c963e..ed81a20 100644 --- a/discover/grub2/script.c +++ b/discover/grub2/script.c @@ -379,7 +379,7 @@ static int function_invoke(struct grub2_script *script, int i; /* set positional parameters */ - for (i = 0; i < argc; i++) { + for (i = 1; i < argc; i++) { name = talloc_asprintf(script, "%d", i); script_env_set(script, name, argv[i]); } |