contrib/git-credential-gnome-keyring.c: strlen() returns size_t, not ssize_t
authorBrandon Casey <drafnel@gmail.com>
Mon, 23 Sep 2013 18:49:07 +0000 (11:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Oct 2013 16:35:30 +0000 (09:35 -0700)
Also, initialization is not necessary since it is assigned before it is
used.

Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/credential/gnome-keyring/git-credential-gnome-keyring.c
index 04852d77d3a1c5363daf0d01460abe43a6edbed3..b9bb794601784f9eb06afa26ded0e5efffba8d8e 100644 (file)
@@ -306,7 +306,7 @@ static void credential_clear(struct credential *c)
 static int credential_read(struct credential *c)
 {
        char    buf[1024];
 static int credential_read(struct credential *c)
 {
        char    buf[1024];
-       ssize_t line_len = 0;
+       size_t line_len;
        char   *key      = buf;
        char   *value;
 
        char   *key      = buf;
        char   *value;