Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
fsck_head_link(): remove unneeded flag variable
author
Michael Haggerty
<mhagger@alum.mit.edu>
Thu, 7 Apr 2016 19:03:05 +0000
(15:03 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 10 Apr 2016 18:35:33 +0000
(11:35 -0700)
It is never read, so we can pass NULL to resolve_ref_unsafe().
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsck.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
89e8238
)
diff --git
a/builtin/fsck.c
b/builtin/fsck.c
index 55eac756f7c83e496daae7cb8874552caaa58ff5..3f27456883ede5efa2a57cfa9e2dcc889e952338 100644
(file)
--- a/
builtin/fsck.c
+++ b/
builtin/fsck.c
@@
-493,13
+493,12
@@
static void fsck_object_dir(const char *path)
static int fsck_head_link(void)
{
- int flag;
int null_is_error = 0;
if (verbose)
fprintf(stderr, "Checking HEAD link\n");
- head_points_at = resolve_ref_unsafe("HEAD", 0, head_oid.hash,
&flag
);
+ head_points_at = resolve_ref_unsafe("HEAD", 0, head_oid.hash,
NULL
);
if (!head_points_at) {
errors_found |= ERROR_REFS;
return error("Invalid HEAD");