mirror of
https://github.com/git/git.git
synced 2026-01-08 09:13:48 +00:00
refs: dereference the value of the required pointer
Currently, this always prints yes because required is non-null. This is the wrong behavior. The boolean must be dereferenced. Signed-off-by: Greg Funni <gfunni234@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
28b83e6f08
commit
46d0ee2d69
@@ -131,7 +131,7 @@ static int debug_optimize_required(struct ref_store *ref_store,
|
||||
struct debug_ref_store *drefs = (struct debug_ref_store *)ref_store;
|
||||
int res = drefs->refs->be->optimize_required(drefs->refs, opts, required);
|
||||
trace_printf_key(&trace_refs, "optimize_required: %s, res: %d\n",
|
||||
required ? "yes" : "no", res);
|
||||
*required ? "yes" : "no", res);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user