mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 06:56:28 -05:00
Silence clang static analyzer warnings
This commit is contained in:
parent
52c00ea982
commit
cd39ccf752
10 changed files with 35 additions and 19 deletions
|
|
@ -329,7 +329,9 @@ static int repair(struct snapraid_state* state, int rehash, block_off_t pos, uns
|
|||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
||||
if (hash_is_invalid(block->hash)) {
|
||||
if (block == BLOCK_NULL) {
|
||||
hash = "none";
|
||||
} else if (hash_is_invalid(block->hash)) {
|
||||
hash = "lost";
|
||||
} else if (hash_is_zero(block->hash)) {
|
||||
hash = "zero";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue