Unverified Commit 30ba98a1 by Edward Thomson Committed by GitHub

Merge pull request #5636 from libgit2/pks-release-build-warnings

Fix release build warnings
parents 8087498d b254a585
......@@ -198,7 +198,7 @@ static int parse_header_git_index(
return -1;
if (git_parse_peek(&c, &ctx->parse_ctx, 0) == 0 && c == ' ') {
uint16_t mode;
uint16_t mode = 0;
git_parse_advance_chars(&ctx->parse_ctx, 1);
......
......@@ -606,7 +606,7 @@ int git_reference_rename(
const char *log_message)
{
refs_update_head_payload payload;
git_signature *signature;
git_signature *signature = NULL;
git_repository *repo;
int error;
......
......@@ -298,8 +298,11 @@ static int git_sysdir_find_in_dirlist(
}
done:
if (name)
git_error_set(GIT_ERROR_OS, "the %s file '%s' doesn't exist", label, name);
else
git_error_set(GIT_ERROR_OS, "the %s directory doesn't exist", label);
git_buf_dispose(path);
git_error_set(GIT_ERROR_OS, "the %s file '%s' doesn't exist", label, name);
return GIT_ENOTFOUND;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment