diff --git a/builtin/rerere.c b/builtin/rerere.c
index 39ad60169d6f4cd53e560e922410b48cc01f7886..9b1e3a7cf50674ffdd834d08edba184f5c7c285d 100644 (file)
--- a/builtin/rerere.c
+++ b/builtin/rerere.c
static void garbage_collect(struct string_list *rr)
{
- struct string_list to_remove = { NULL, 0, 0, 1 };
+ struct string_list to_remove = STRING_LIST_INIT_DUP;
DIR *dir;
struct dirent *e;
int i, cutoff;
int cmd_rerere(int argc, const char **argv, const char *prefix)
{
- struct string_list merge_rr = { NULL, 0, 0, 1 };
+ struct string_list merge_rr = STRING_LIST_INIT_DUP;
int i, fd, flags = 0;
if (2 < argc) {