ref-filter: make 'ref_array_item' use a FLEX_ARRAY for refname
This would remove the need of using a pointer to store refname. Mentored-by: Christian Couder <christian.couder@gmail.com> Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr> Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Reviewed-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
14de7fba34
commit
1958a6eb54
@ -32,7 +32,7 @@ struct ref_array_item {
|
||||
int flag;
|
||||
const char *symref;
|
||||
struct atom_value *value;
|
||||
char *refname;
|
||||
char refname[FLEX_ARRAY];
|
||||
};
|
||||
|
||||
struct ref_array {
|
||||
|
Reference in New Issue
Block a user