* grub-core/kern/partition.c (grub_partition_get_name): Fix uninited

variable.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-08 20:19:44 +01:00
parent 667478942a
commit ce6647c83c
2 changed files with 6 additions and 1 deletions

View file

@ -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>
* grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name

View file

@ -224,7 +224,7 @@ char *
grub_partition_get_name (const grub_partition_t partition)
{
char *out = 0, *ptr;
grub_size_t needlen;
grub_size_t needlen = 0;
grub_partition_t part;
if (!partition)
return grub_strdup ("");