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>
Brandon Casey committed
Sep 23, 2013 at 11:49 UTC
fb2763746f2a4dcd63a5e4b389f8308e775684d8
1 file changed
+1
-1
contrib/credential/gnome-keyring/git-credential-gnome-keyring.c
+1
-1
@@ -306,7 +306,7 @@ static void credential_clear(struct credential *c)
306
static int credential_read(struct credential *c)
307
{
308
char buf[1024];
309
- ssize_t line_len = 0;
309
+ size_t line_len;
310
char *key = buf;
311
char *value;
312