* grub-core/disk/diskfilter.c (read_segment): Initialise err
before loops.
This commit is contained in:
parent
e837738991
commit
32eb6ee157
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/disk/diskfilter.c (read_segment): Initialise err
|
||||||
|
before loops.
|
||||||
|
|
||||||
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
|
* grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
|
||||||
|
|
|
@ -457,11 +457,13 @@ read_segment (struct grub_diskfilter_segment *seg, grub_disk_addr_t sector,
|
||||||
if (read_size > size)
|
if (read_size > size)
|
||||||
read_size = size;
|
read_size = size;
|
||||||
|
|
||||||
|
err = 0;
|
||||||
for (i = 0; i < near; i++)
|
for (i = 0; i < near; i++)
|
||||||
{
|
{
|
||||||
unsigned int k;
|
unsigned int k;
|
||||||
|
|
||||||
k = disknr;
|
k = disknr;
|
||||||
|
err = 0;
|
||||||
for (j = 0; j < far; j++)
|
for (j = 0; j < far; j++)
|
||||||
{
|
{
|
||||||
if (grub_errno == GRUB_ERR_READ_ERROR
|
if (grub_errno == GRUB_ERR_READ_ERROR
|
||||||
|
|
Loading…
Reference in a new issue