mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-04 07:15:20 +00:00
Fixed potential crash with uninitialized variables
This commit is contained in:
parent
ea66215d87
commit
64bcf567c3
@ -725,7 +725,7 @@ int git_describe_workdir(
|
||||
git_oid current_id;
|
||||
git_status_list *status = NULL;
|
||||
git_status_options status_opts = GIT_STATUS_OPTIONS_INIT;
|
||||
git_describe_result *result;
|
||||
git_describe_result *result = NULL;
|
||||
git_object *commit;
|
||||
|
||||
if ((error = git_reference_name_to_id(¤t_id, repo, GIT_HEAD_FILE)) < 0)
|
||||
|
@ -1691,7 +1691,7 @@ int git_remote_rename(git_strarray *out, git_repository *repo, const char *name,
|
||||
{
|
||||
int error;
|
||||
git_vector problem_refspecs = GIT_VECTOR_INIT;
|
||||
git_remote *remote;
|
||||
git_remote *remote = NULL;
|
||||
|
||||
assert(out && repo && name && new_name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user