X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=diff-no-index.c;h=ce9e783407437bb1e0efc6d5bc2392af26da5a41;hb=HEAD;hp=43aeeba2e0fd9c3c175dbc74a6f488e2c352c928;hpb=061219fa7cf1063ac7f0dace55e8d175c7a91879;p=git.git diff --git a/diff-no-index.c b/diff-no-index.c index 43aeeba2e..ce9e78340 100644 --- a/diff-no-index.c +++ b/diff-no-index.c @@ -64,7 +64,8 @@ static int queue_diff(struct diff_options *o, if (S_ISDIR(mode1) || S_ISDIR(mode2)) { char buffer1[PATH_MAX], buffer2[PATH_MAX]; - struct string_list p1 = {NULL, 0, 0, 1}, p2 = {NULL, 0, 0, 1}; + struct string_list p1 = STRING_LIST_INIT_DUP; + struct string_list p2 = STRING_LIST_INIT_DUP; int len1 = 0, len2 = 0, i1, i2, ret = 0; if (name1 && read_directory(name1, &p1))