2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>

* io/gzio.c (grub_gzio_open): Use grub_zalloc.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-02-14 02:10:46 +01:00
parent 904935c3ef
commit 8c71795010
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
* io/gzio.c (grub_gzio_open): Use grub_zalloc.
2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
Merge grub_ieee1275_map_physical into grub_map and rename to

View file

@ -1121,14 +1121,13 @@ grub_gzio_open (grub_file_t io, int transparent)
if (! file)
return 0;
gzio = grub_malloc (sizeof (*gzio));
gzio = grub_zalloc (sizeof (*gzio));
if (! gzio)
{
grub_free (file);
return 0;
}
grub_memset (gzio, 0, sizeof (*gzio));
gzio->file = io;
file->device = io->device;