Fix uninitialised usage of curarg
This commit is contained in:
parent
07473cf917
commit
43cce9e095
1 changed files with 2 additions and 2 deletions
|
@ -411,10 +411,10 @@ grub_legacy_parse (const char *buf, char **entryname, int *suffix)
|
||||||
{
|
{
|
||||||
unsigned j = 0;
|
unsigned j = 0;
|
||||||
int hold_arg = 0;
|
int hold_arg = 0;
|
||||||
|
const char *curarg = NULL;
|
||||||
for (i = 0; i < legacy_commands[cmdnum].argc; i++)
|
for (i = 0; i < legacy_commands[cmdnum].argc; i++)
|
||||||
{
|
{
|
||||||
const char *curarg;
|
grub_size_t curarglen;
|
||||||
grub_size_t curarglen;
|
|
||||||
if (hold_arg)
|
if (hold_arg)
|
||||||
{
|
{
|
||||||
ptr = curarg;
|
ptr = curarg;
|
||||||
|
|
Loading…
Reference in a new issue