Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If an error would appear before setting
buildstate->index_file_fd = -1
in `InitBuildState` we would try to close that file descriptor (which would be 0) in `BuildIndexCleanup` function because of condition `if (buildstate->index_file_fd != -1)` and trying to close fd 0 was crashing the server. Now we will check if the fd is greater than 0 before closing it.
- Loading branch information