summaryrefslogtreecommitdiff
path: root/contrib/credential
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2013-09-23 18:49:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-10-16 16:35:30 (GMT)
commitfb2763746f2a4dcd63a5e4b389f8308e775684d8 (patch)
tree523f91dc60745cd1a823f2f436eb45fb836ccca1 /contrib/credential
parent7a6d6423c5a66589112f651a394b3a3ec076a7cf (diff)
downloadgit-fb2763746f2a4dcd63a5e4b389f8308e775684d8.zip
git-fb2763746f2a4dcd63a5e4b389f8308e775684d8.tar.gz
git-fb2763746f2a4dcd63a5e4b389f8308e775684d8.tar.bz2
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>
Diffstat (limited to 'contrib/credential')
-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 04852d7..b9bb794 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;