Silence warnings in git-access.c

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2016-03-07 16:18:05 -03:00 committed by Dirk Hohndel
parent 9d3be5a165
commit 62bdc9e3ec

View file

@ -186,7 +186,7 @@ int credential_https_cb(git_cred **out,
(void) url;
(void) username_from_url;
(void) payload;
(void) allowed_types;
const char *username = prefs.cloud_storage_email_encoded;
const char *password = prefs.cloud_storage_password ? strdup(prefs.cloud_storage_password) : strdup("");
return git_cred_userpass_plaintext_new(out, username, password);