mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-26 01:46:32 -05:00
Silence clang static analyzer warnings
This commit is contained in:
parent
0f0873cf2b
commit
31011d34c3
10 changed files with 29 additions and 21 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