X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fshow-ref.c;h=be9b512eebc72984e6ff4cdd4859ab7951539e19;hb=c2e0940b44ded03f0af02be95c35b231fea633c1;hp=0b2a9ad1a9a8a825c2e2104f8a9f729a9cb03d1a;hpb=5f7baac1e34440d3805ef488c97af748f3c20640;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;