aboutsummaryrefslogtreecommitdiff
path: root/builtin/show-ref.c
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-07-04 16:46:19 -0300
committerJunio C Hamano <gitster@pobox.com>2010-07-05 11:47:57 -0700
commit183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2 (patch)
tree2ab3a6f27ab3e8857cf3b5a825435f7bf6ed5b72 /builtin/show-ref.c
parent8a57c6e9437eeebf849f0def03389078a510312e (diff)
downloadgit-183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2.tar.gz
git-183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2.tar.xz
string_list: Add STRING_LIST_INIT macro and make use of it.
Acked-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/show-ref.c')
-rw-r--r--builtin/show-ref.c2
1 files changed, 1 insertions, 1 deletions
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;