mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Fixes invalid use of disk variable in dry.
This commit is contained in:
parent
b91ae16e3e
commit
2346fa0d60
1 changed files with 6 additions and 2 deletions
|
|
@ -61,8 +61,12 @@ static int state_dry_process(struct snapraid_state* state, struct snapraid_parit
|
|||
struct snapraid_block* block = BLOCK_EMPTY;
|
||||
struct snapraid_disk* disk = handle[j].disk;
|
||||
|
||||
if (disk)
|
||||
block = disk_block_get(disk, i);
|
||||
if (!disk) {
|
||||
/* if no disk, nothing to do */
|
||||
continue;
|
||||
}
|
||||
|
||||
block = disk_block_get(disk, i);
|
||||
|
||||
if (!block_has_file(block)) {
|
||||
/* if no file, nothing to do */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue