Skip to content

Commit 30e06a9

Browse files
authored
Merge pull request #820 from ioquatix/master
Ensure exception is initialized, in case nentries is zero.
2 parents 0fabffb + dd5806d commit 30e06a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/rugged/rugged_repo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,7 @@ static VALUE rb_git_repo_file_status(VALUE self, VALUE rb_path)
16961696

16971697
static VALUE rb_git_repo_file_each_status(VALUE self)
16981698
{
1699-
int error, exception;
1699+
int error, exception = 0;
17001700
size_t i, nentries;
17011701
git_repository *repo;
17021702
git_status_list *list;

0 commit comments

Comments
 (0)