* grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of

initialisation to avoid __bzero reference.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-28 17:54:18 +02:00
parent f7143efe1b
commit 7de5e20af4
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
initialisation to avoid __bzero reference.
2012-05-28 Vladimir Serbinenko <phcoder@gmail.com> 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly

View file

@ -1163,10 +1163,12 @@ grub_hfs_dir (grub_device_t device, const char *path,
struct grub_hfs_dirrec *drec = rec->data; struct grub_hfs_dirrec *drec = rec->data;
struct grub_hfs_filerec *frec = rec->data; struct grub_hfs_filerec *frec = rec->data;
struct grub_hfs_catalog_key *ckey = rec->key; struct grub_hfs_catalog_key *ckey = rec->key;
char fname[sizeof (ckey->str) * MAX_UTF8_PER_MAC_ROMAN + 1] = { 0 }; char fname[sizeof (ckey->str) * MAX_UTF8_PER_MAC_ROMAN + 1];
struct grub_dirhook_info info; struct grub_dirhook_info info;
grub_size_t len; grub_size_t len;
grub_memset (fname, 0, sizeof (fname));
grub_memset (&info, 0, sizeof (info)); grub_memset (&info, 0, sizeof (info));
len = ckey->strlen; len = ckey->strlen;