aboutsummaryrefslogtreecommitdiffstats
path: root/stagit-index.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2016-05-01 14:09:42 +0200
committerHiltjo Posthuma <[email protected]>2016-05-01 14:42:20 +0200
commitc13c4119501291e5c276d4d1217491b16a2a7ff9 (patch)
tree0df2636b09d46843674591dbe1718b0ba2c66463 /stagit-index.c
parent254f215e5007592127b9e760a01bd1747e1cf71e (diff)
downloadstagit-c13c4119501291e5c276d4d1217491b16a2a7ff9.tar.gz
stagit-c13c4119501291e5c276d4d1217491b16a2a7ff9.zip
code cleanup + style, functionally equivalent
Diffstat (limited to 'stagit-index.c')
-rw-r--r--stagit-index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stagit-index.c b/stagit-index.c
index 5875d21..412721d 100644
--- a/stagit-index.c
+++ b/stagit-index.c
@@ -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);