i386/pc/mmap: Fix memset size.

Found by: Coverity scan.
This commit is contained in:
Vladimir Serbinenko 2015-01-26 09:38:11 +01:00
parent af0be976bf
commit 21f22c7107

View file

@ -148,7 +148,7 @@ grub_machine_mmap_iterate (grub_memory_hook_t hook, void *hook_data)
while (1)
{
grub_memset (entry, 0, sizeof (entry));
grub_memset (entry, 0, sizeof (*entry));
cont = grub_get_mmap_entry (entry, cont);