Skip to content

Commit 013ecb4

Browse files
committed
revwalk: do not re-declare commit variable
1 parent 8468a44 commit 013ecb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/revwalk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ static void mark_parents_uninteresting(git_commit_list_node *commit)
290290

291291

292292
while (parents) {
293-
git_commit_list_node *commit = git_commit_list_pop(&parents);
293+
commit = git_commit_list_pop(&parents);
294294

295295
while (commit) {
296296
if (commit->uninteresting)

0 commit comments

Comments
 (0)