mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-29 05:55:30 -04:00
[misc] fix PVS-Studio warnings
This commit is contained in:
parent
eeca1f279c
commit
c28f9bc491
26 changed files with 98 additions and 81 deletions
|
@ -1438,7 +1438,7 @@ static errcode_t xattr_array_update(struct ext2_xattr_handle *h,
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (h->ibody_count <= old_idx) {
|
||||
if (old_idx >= 0 && h->ibody_count <= old_idx) {
|
||||
block_free += EXT2_EXT_ATTR_LEN(name_len);
|
||||
if (!h->attrs[old_idx].ea_ino)
|
||||
block_free +=
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue