setup: fix blocklist size calculation
Found by: Coverity scan.
This commit is contained in:
parent
151c19a42a
commit
016875dd52
1 changed files with 1 additions and 1 deletions
|
@ -529,7 +529,7 @@ SETUP (const char *dir,
|
||||||
bl.block = bl.first_block;
|
bl.block = bl.first_block;
|
||||||
while (bl.block->len)
|
while (bl.block->len)
|
||||||
{
|
{
|
||||||
grub_memset (bl.block, 0, sizeof (bl.block));
|
grub_memset (bl.block, 0, sizeof (*bl.block));
|
||||||
|
|
||||||
bl.block--;
|
bl.block--;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue