summaryrefslogtreecommitdiffstats
path: root/sequencer.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-10-11 19:21:48 +0200
committerJunio C Hamano <gitster@pobox.com>2021-10-11 19:21:48 +0200
commit404c4a54624c3e0ea9066809344a6269c16de69f (patch)
tree53e4675199a1cfafdaea4f3304564446375812ed /sequencer.h
parentMerge branch 'ab/sanitize-leak-ci' (diff)
parentcbtree.h: define cb_init() in terms of CBTREE_INIT (diff)
downloadgit-404c4a54624c3e0ea9066809344a6269c16de69f.tar.xz
git-404c4a54624c3e0ea9066809344a6269c16de69f.zip
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 'sequencer.h')
-rw-r--r--sequencer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sequencer.h b/sequencer.h
index b4d0305606..d8a1853b29 100644
--- a/sequencer.h
+++ b/sequencer.h
@@ -118,7 +118,9 @@ struct todo_list {
int done_nr, total_nr;
};
-#define TODO_LIST_INIT { STRBUF_INIT }
+#define TODO_LIST_INIT { \
+ .buf = STRBUF_INIT, \
+}
int todo_list_parse_insn_buffer(struct repository *r, char *buf,
struct todo_list *todo_list);