X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin%2Fshow-ref.c;h=be9b512eebc72984e6ff4cdd4859ab7951539e19;hb=385cc9d8c44eb5be9d57e630129752a72c0a08c8;hp=0b2a9ad1a9a8a825c2e2104f8a9f729a9cb03d1a;hpb=bff6e86b3d01febaa2d73ff4e890f091999e9e28;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;