Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
file_scan: prevent a bad close(2) on early error
Without this change, fd is initiated as 0. If an error occurs before we open(2) the file, the cleanup code will try to close that unrelated file descriptor. Signed-off-by: Alexandre Bruyelles <[email protected]>
- Loading branch information