Introduction
Introduction Statistics Contact Development Disclaimer Help
tsimplify, id is unused - stagit - static git page generator
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit a7dd578de71f81be7af95dc1cbbf0137316018ff
parent f89c317dee3006e0c7b88832d7c74e30f646036c
Author: Hiltjo Posthuma <[email protected]>
Date: Sat, 7 May 2016 14:38:39 +0200
simplify, id is unused
Diffstat:
M stagit.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/stagit.c b/stagit.c
t@@ -940,9 +940,8 @@ writerefs(FILE *fp)
default:
continue;
}
- if (!(id = git_reference_target(r)))
- goto err;
- if (git_reference_peel(&obj, r, GIT_OBJ_ANY))
+ if (!git_reference_target(r) ||
+ git_reference_peel(&obj, r, GIT_OBJ_ANY))
goto err;
if (!(id = git_object_id(obj)))
goto err;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.