aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2013-09-23 11:49:07 -0700
committerJunio C Hamano <gitster@pobox.com>2013-10-16 09:35:30 -0700
commitfb2763746f2a4dcd63a5e4b389f8308e775684d8 (patch)
tree523f91dc60745cd1a823f2f436eb45fb836ccca1
parent7a6d6423c5a66589112f651a394b3a3ec076a7cf (diff)
downloadgit-fb2763746f2a4dcd63a5e4b389f8308e775684d8.tar.gz
git-fb2763746f2a4dcd63a5e4b389f8308e775684d8.tar.xz
contrib/git-credential-gnome-keyring.c: strlen() returns size_t, not ssize_t
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>
-rw-r--r--contrib/credential/gnome-keyring/git-credential-gnome-keyring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c b/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c
index 04852d77d..b9bb79460 100644
--- a/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c
+++ b/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c
@@ -306,7 +306,7 @@ static void credential_clear(struct credential *c)
static int credential_read(struct credential *c)
{
char buf[1024];
- ssize_t line_len = 0;
+ size_t line_len;
char *key = buf;
char *value;