mirror of
https://github.com/git/git.git
synced 2024-12-03 06:53:53 +08:00
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>
This commit is contained in:
parent
7a6d6423c5
commit
fb2763746f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user