aboutsummaryrefslogtreecommitdiffstats
path: root/sequencer.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-09-27 15:02:13 -0700
committerJunio C Hamano <gitster@pobox.com>2021-09-27 15:02:13 -0700
commita30321b9eaede5a1d639936d212e2d0fc8d414c8 (patch)
tree56806f1b45ec4b31eaa6dc182d42798703d16d8e /sequencer.h
parentThe eighth batch (diff)
parentcbtree.h: define cb_init() in terms of CBTREE_INIT (diff)
downloadgit-a30321b9eaede5a1d639936d212e2d0fc8d414c8.tar.gz
git-a30321b9eaede5a1d639936d212e2d0fc8d414c8.zip
Merge branch 'ab/designated-initializers' into ab/designated-initializers-more
* 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 2088344cb3..259d4eb4a8 100644
--- a/sequencer.h
+++ b/sequencer.h
@@ -119,7 +119,9 @@ struct todo_list {
struct stat_data stat;
};
-#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);