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:
Andrea Mazzoleni 2016-02-03 19:58:54 +01:00
parent 4cfe733302
commit c2079947e5

View file

@ -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;
}