Fix uninitialised usage of curarg

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-12 11:01:21 +02:00
parent 07473cf917
commit 43cce9e095

View file

@ -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;