Separate conditions for easier debugging
This commit is contained in:
parent
46fe1722ce
commit
86e4fce654
@ -56,7 +56,12 @@ InitRD::File InitRD::open(const char* filename)
|
||||
while (block < total_blocks)
|
||||
{
|
||||
TarHeader* hdr = (TarHeader*)get_block(block);
|
||||
if (hdr->typeflag == 53 || !is_valid_header(hdr))
|
||||
if (hdr->typeflag == 53)
|
||||
{
|
||||
block++;
|
||||
continue;
|
||||
}
|
||||
if (!is_valid_header(hdr))
|
||||
{
|
||||
block++;
|
||||
continue;
|
||||
@ -79,7 +84,12 @@ void InitRD::for_each(void (*callback)(File& f))
|
||||
while (block < total_blocks)
|
||||
{
|
||||
TarHeader* hdr = (TarHeader*)get_block(block);
|
||||
if (hdr->typeflag == 53 || !is_valid_header(hdr))
|
||||
if (hdr->typeflag == 53)
|
||||
{
|
||||
block++;
|
||||
continue;
|
||||
}
|
||||
if (!is_valid_header(hdr))
|
||||
{
|
||||
block++;
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user