code cleanup + style, functionally equivalent

This commit is contained in:
Hiltjo Posthuma
2016-05-01 14:09:42 +02:00
parent 254f215e50
commit c13c411950
2 changed files with 12 additions and 20 deletions

View File

@@ -92,11 +92,11 @@ writefooter(FILE *fp)
int
writelog(FILE *fp)
{
char *stripped_name = NULL, *p;
git_commit *commit = NULL;
const git_signature *author;
git_revwalk *w = NULL;
git_oid id;
char *stripped_name = NULL, *p;
int ret = 0;
git_revwalk_new(&w, repo);