Skip to content

Conversation

@ethomson
Copy link
Member

No description provided.

cli_progress_finish(&progress);

done:
if (!read_stdin && fd > 0)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!read_stdin && fd > 0)
if (!read_stdin && fd >= 0)

If we're reading an on-disk packfile, ensure that we close the file
descriptor on error.
`GIT_ASSERT` may be a macro for `assert` (when `GIT_ASSERT_HARD` is
defined), which may differ in debug builds. Pull the assignment out of
the assertion.
`opts` may be null; check before dereferencing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants