X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fshow-ref.c;h=be9b512eebc72984e6ff4cdd4859ab7951539e19;hb=e13219fa1a3769cff74ce36acef7a8306795ed52;hp=0b2a9ad1a9a8a825c2e2104f8a9f729a9cb03d1a;hpb=061219fa7cf1063ac7f0dace55e8d175c7a91879;p=git.git diff --git a/builtin/show-ref.c b/builtin/show-ref.c index 0b2a9ad1a..be9b512ee 100644 --- a/builtin/show-ref.c +++ b/builtin/show-ref.c @@ -120,7 +120,7 @@ static int add_existing(const char *refname, const unsigned char *sha1, int flag */ static int exclude_existing(const char *match) { - static struct string_list existing_refs = { NULL, 0, 0, 0 }; + static struct string_list existing_refs = STRING_LIST_INIT_NODUP; char buf[1024]; int matchlen = match ? strlen(match) : 0;