Skip to content

Commit fb27637

Browse files
drafnelgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7a6d642 commit fb27637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/credential/gnome-keyring/git-credential-gnome-keyring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ static void credential_clear(struct credential *c)
306306
static int credential_read(struct credential *c)
307307
{
308308
char buf[1024];
309-
ssize_t line_len = 0;
309+
size_t line_len;
310310
char *key = buf;
311311
char *value;
312312

0 commit comments

Comments
 (0)