agent: Initialize FP for the case of error return.

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

--

Cherry-picked from master commit of:
	a8618fdccd

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
1 changed files with 1 additions and 1 deletions

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;