Commit 69302126 by Vicent Martí

Merge pull request #1109 from scunz/uninitialized

Fix uninitialized variable
parents ae201891 7cdad6c7
...@@ -341,7 +341,7 @@ int git_submodule_add_finalize(git_submodule *sm) ...@@ -341,7 +341,7 @@ int git_submodule_add_finalize(git_submodule *sm)
int git_submodule_add_to_index(git_submodule *sm, int write_index) int git_submodule_add_to_index(git_submodule *sm, int write_index)
{ {
int error; int error;
git_repository *repo, *sm_repo; git_repository *repo, *sm_repo = NULL;
git_index *index; git_index *index;
git_buf path = GIT_BUF_INIT; git_buf path = GIT_BUF_INIT;
git_commit *head; git_commit *head;
......
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