Skip to content

Commit

Permalink
contrib/git-credential-gnome-keyring.c: strlen() returns size_t, not …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Brandon Casey authored and Junio C Hamano committed Oct 16, 2013
1 parent 7a6d642 commit fb27637
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fb27637

Please sign in to comment.