mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Remove a false positive warning for Coverity Scan
It cannot see that if file is != 0 and handle->file == file, also handle->file is != 0.
This commit is contained in:
parent
4cfe733302
commit
c2079947e5
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ int handle_open(struct snapraid_handle* handle, struct snapraid_file* file, int
|
|||
out_missing = out;
|
||||
|
||||
/* if already opened, nothing to do */
|
||||
if (handle->file == file && handle->f != -1) {
|
||||
if (handle->file == file && handle->file != 0 && handle->f != -1) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue