* grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
variable.
This commit is contained in:
parent
667478942a
commit
ce6647c83c
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
|
||||||
|
variable.
|
||||||
|
|
||||||
2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
|
* grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
|
||||||
|
|
|
@ -224,7 +224,7 @@ char *
|
||||||
grub_partition_get_name (const grub_partition_t partition)
|
grub_partition_get_name (const grub_partition_t partition)
|
||||||
{
|
{
|
||||||
char *out = 0, *ptr;
|
char *out = 0, *ptr;
|
||||||
grub_size_t needlen;
|
grub_size_t needlen = 0;
|
||||||
grub_partition_t part;
|
grub_partition_t part;
|
||||||
if (!partition)
|
if (!partition)
|
||||||
return grub_strdup ("");
|
return grub_strdup ("");
|
||||||
|
|
Loading…
Reference in a new issue