1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

agent: Initialize FP for the case of error return.

* agent/findkey.c (agent_write_private_key): Initialize FP.

--

Cherry-picked from master commit of:
	a8618fdccdab228a8bbe3efeb87223a68fa57219

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2023-09-26 13:42:37 +09:00
parent b4449ffabc
commit 19caa5c267
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -118,7 +118,7 @@ agent_write_private_key (const unsigned char *grip,
gpg_error_t err;
char *fname = NULL;
char *tmpfname = NULL;
estream_t fp;
estream_t fp = NULL;
int newkey;
nvc_t pk = NULL;
gcry_sexp_t key = NULL;