diff options
author | Patrick Steinhardt <ps@pks.im> | 2019-05-24 11:06:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-24 11:06:38 +0200 |
commit | 7a0238b18b25f65eb3e67fbd9d6a8a0afc58664a (patch) | |
tree | 2b10580db002acfaf1f636dc265f86f855f92b0e /src | |
parent | 2f7b6ad5070635edefa87e0cff76d897e8df5cfb (diff) | |
parent | 9cc904dae15d713aebd9becf83f42c9accb597a1 (diff) | |
download | libgit2-7a0238b18b25f65eb3e67fbd9d6a8a0afc58664a.tar.gz |
Merge pull request #5084 from eaigner/garbage-value
repository: fix garbage return value
Diffstat (limited to 'src')
-rw-r--r-- | src/repository.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository.c b/src/repository.c index 349ddf1d4..8b9002890 100644 --- a/src/repository.c +++ b/src/repository.c @@ -2216,7 +2216,7 @@ int git_repository_foreach_head(git_repository *repo, { git_strarray worktrees = GIT_VECTOR_INIT; git_buf path = GIT_BUF_INIT; - int error; + int error = 0; size_t i; |