diff options
author | Brandon Casey <drafnel@gmail.com> | 2013-09-23 11:49:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-10-16 09:35:30 -0700 |
commit | fb2763746f2a4dcd63a5e4b389f8308e775684d8 (patch) | |
tree | 523f91dc60745cd1a823f2f436eb45fb836ccca1 /contrib/credential | |
parent | contrib/git-credential-gnome-keyring.c: exit non-zero when called incorrectly (diff) | |
download | tgif-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>
Diffstat (limited to 'contrib/credential')
-rw-r--r-- | contrib/credential/gnome-keyring/git-credential-gnome-keyring.c | 2 |
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 04852d77d3..b9bb794601 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; |