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>
This commit is contained in:

committed by
Junio C Hamano

parent
8a57c6e943
commit
183113a5ca
@ -530,7 +530,7 @@ static void check_aliased_update(struct command *cmd, struct string_list *list)
|
||||
static void check_aliased_updates(struct command *commands)
|
||||
{
|
||||
struct command *cmd;
|
||||
struct string_list ref_list = { NULL, 0, 0, 0 };
|
||||
struct string_list ref_list = STRING_LIST_INIT_NODUP;
|
||||
|
||||
for (cmd = commands; cmd; cmd = cmd->next) {
|
||||
struct string_list_item *item =
|
||||
|
Reference in New Issue
Block a user