diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2023-09-26 06:42:37 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2023-09-26 06:42:37 +0200 |
commit | a8618fdccdab228a8bbe3efeb87223a68fa57219 (patch) | |
tree | 575f3b357a6f9b844c7a8bb66354a7d818a85745 /agent | |
parent | Use gpgrt_b64* API of libgpg-error. (diff) | |
download | gnupg2-a8618fdccdab228a8bbe3efeb87223a68fa57219.tar.xz gnupg2-a8618fdccdab228a8bbe3efeb87223a68fa57219.zip |
agent: Initialize FP for the case of error return.
* agent/findkey.c (agent_write_private_key): Initialize FP.
--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'agent')
-rw-r--r-- | agent/findkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/findkey.c b/agent/findkey.c index 41f911cf8..c2f6c3d4c 100644 --- a/agent/findkey.c +++ b/agent/findkey.c @@ -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; |