diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-10-11 20:21:48 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-11 20:21:48 +0300 |
commit | 404c4a54624c3e0ea9066809344a6269c16de69f (patch) | |
tree | 53e4675199a1cfafdaea4f3304564446375812ed /revision.c | |
parent | 859a585bdf9baa257c08a50895d9829171a5ad46 (diff) | |
parent | 538835d2ac151abbe90058becfc0dc061d33302c (diff) |
Merge branch 'ab/designated-initializers'
Code clean-up.
* ab/designated-initializers:
cbtree.h: define cb_init() in terms of CBTREE_INIT
*.h: move some *_INIT to designated initializers
*.h _INIT macros: don't specify fields equal to 0
*.[ch] *_INIT macros: use { 0 } for a "zero out" idiom
submodule-config.h: remove unused SUBMODULE_INIT macro
Diffstat (limited to 'revision.c')
-rw-r--r-- | revision.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c index 3ad217f2ff..ab7c135804 100644 --- a/revision.c +++ b/revision.c @@ -249,7 +249,7 @@ struct commit_stack { struct commit **items; size_t nr, alloc; }; -#define COMMIT_STACK_INIT { NULL, 0, 0 } +#define COMMIT_STACK_INIT { 0 } static void commit_stack_push(struct commit_stack *stack, struct commit *commit) { |