]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 14 Feb 2010 01:10:46 +0000 (02:10 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 14 Feb 2010 01:10:46 +0000 (02:10 +0100)
* io/gzio.c (grub_gzio_open): Use grub_zalloc.

ChangeLog
io/gzio.c

index bd8165647da9d026aa1c54fc29c6e6a777c3a591..2084735e0908a2bdc75030262402a4b658c78cf6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 39f6d7b13afe34b7db5e61105e48f4f6d2f67a49..9bf609105af502e3857ec91abe956a92af8a1001 100644 (file)
--- a/io/gzio.c
+++ b/io/gzio.c
@@ -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;