[pacman-dev] [PATCH] _alpm_key_import: Initialise fetch_key
Allan McRae
allan at archlinux.org
Sun Sep 5 00:01:10 UTC 2021
Prevents build warning.
Signed-off-by: Allan McRae <allan at archlinux.org>
---
Missed this in my testing as I was building in release mode. Luckily
our gitlab CI noticed!
lib/libalpm/signing.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c
index 443682b5..d5cfcfe1 100644
--- a/lib/libalpm/signing.c
+++ b/lib/libalpm/signing.c
@@ -495,7 +495,7 @@ static int email_from_uid(const char *uid, char **email)
int _alpm_key_import(alpm_handle_t *handle, const char *uid, const char *fpr)
{
int ret = -1;
- alpm_pgpkey_t fetch_key;
+ alpm_pgpkey_t fetch_key = {0};
char *email;
if(_alpm_access(handle, handle->gpgdir, "pubring.gpg", W_OK)) {
--
2.33.0
More information about the pacman-dev
mailing list