* grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
explicitly zeroing elements. * grub-core/io/gzio.c (grub_gzio_open): Likewise. * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing of elements in a structure already allocated using grub_zalloc. * grub-core/io/xzio.c (grub_xzio_open): Likewise.
This commit is contained in:
parent
86065b0ad6
commit
f8861eaf9f
5 changed files with 12 additions and 17 deletions
|
@ -428,9 +428,7 @@ grub_lzopio_open (grub_file_t io)
|
|||
lzopio->file = io;
|
||||
|
||||
file->device = io->device;
|
||||
file->offset = 0;
|
||||
file->data = lzopio;
|
||||
file->read_hook = 0;
|
||||
file->fs = &grub_lzopio_fs;
|
||||
file->size = GRUB_FILE_SIZE_UNKNOWN;
|
||||
file->not_easily_seekable = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue