Skip to content

Commit bdab6a5

Browse files
tfarinagitster
authored andcommitted
builtin/clean.c: Use STRING_LIST_INIT_NODUP.
Signed-off-by: Thiago Farina <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2c76c3f commit bdab6a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/clean.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
4444
struct dir_struct dir;
4545
static const char **pathspec;
4646
struct strbuf buf = STRBUF_INIT;
47-
struct string_list exclude_list = { NULL, 0, 0, 0 };
47+
struct string_list exclude_list = STRING_LIST_INIT_NODUP;
4848
const char *qname;
4949
char *seen = NULL;
5050
struct option options[] = {

0 commit comments

Comments
 (0)