Skip to content

Commit 6010046

Browse files
author
Vicent Marti
committed
Merge pull request #457 from aiionx/master
Fix SIGSEGV: check if there was an exception when initializing iterator
2 parents bb325f0 + 0f8db3c commit 6010046

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/rugged/rugged_branch_collection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ static VALUE each_branch(int argc, VALUE *argv, VALUE self, int branch_names_onl
235235
Data_Get_Struct(rb_repo, git_repository, repo);
236236

237237
error = git_branch_iterator_new(&iter, repo, filter);
238+
rugged_exception_check(error);
238239

239240
if (branch_names_only) {
240241
git_reference *branch;

0 commit comments

Comments
 (0)