summaryrefslogtreecommitdiff
path: root/builtin/mailsplit.c
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-07-04 19:46:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-07-05 18:47:57 (GMT)
commit183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2 (patch)
tree2ab3a6f27ab3e8857cf3b5a825435f7bf6ed5b72 /builtin/mailsplit.c
parent8a57c6e9437eeebf849f0def03389078a510312e (diff)
downloadgit-183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2.zip
git-183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2.tar.gz
git-183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2.tar.bz2
string_list: Add STRING_LIST_INIT macro and make use of it.
Acked-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/mailsplit.c')
-rw-r--r--builtin/mailsplit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/mailsplit.c b/builtin/mailsplit.c
index e4560da..99654d0 100644
--- a/builtin/mailsplit.c
+++ b/builtin/mailsplit.c
@@ -137,7 +137,7 @@ static int split_maildir(const char *maildir, const char *dir,
char name[PATH_MAX];
int ret = -1;
int i;
- struct string_list list = {NULL, 0, 0, 1};
+ struct string_list list = STRING_LIST_INIT_DUP;
if (populate_maildir_list(&list, maildir) < 0)
goto out;