diff options
author | Vicent Martà <vicent@github.com> | 2012-11-28 04:14:24 -0800 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2012-11-28 04:14:24 -0800 |
commit | 693021262ba0eeac2923bbce1b2262717019c807 (patch) | |
tree | e72f3b078fd6f78695fcc86fe8d8b7368a55f988 | |
parent | ae2018917046da49f5926a3056360246d5abead2 (diff) | |
parent | 7cdad6c77425348364d9c10582b1b779dd7c1ade (diff) | |
download | libgit2-693021262ba0eeac2923bbce1b2262717019c807.tar.gz |
Merge pull request #1109 from scunz/uninitialized
Fix uninitialized variable
-rw-r--r-- | src/submodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/submodule.c b/src/submodule.c index b6e5c96f6..15158f0d8 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -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 error; - git_repository *repo, *sm_repo; + git_repository *repo, *sm_repo = NULL; git_index *index; git_buf path = GIT_BUF_INIT; git_commit *head; |