remove unnecessary initializations
[jc: I needed to hand merge the changes to the updated codebase, so the result needs to be checked.] Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
c9c3470aec
commit
96f1e58f52
6
commit.c
6
commit.c
@ -727,10 +727,10 @@ struct commit *pop_commit(struct commit_list **stack)
|
||||
|
||||
int count_parents(struct commit * commit)
|
||||
{
|
||||
int count = 0;
|
||||
int count;
|
||||
struct commit_list * parents = commit->parents;
|
||||
for (count=0;parents; parents=parents->next,count++)
|
||||
;
|
||||
for (count = 0; parents; parents = parents->next,count++)
|
||||
;
|
||||
return count;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user