Skip to content

Commit dd5806d

Browse files
committed
Ensure exception is initialized, in case nentries is zero.
Fixes #819.
1 parent 0fabffb commit dd5806d

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)