aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-09-26 04:42:37 +0000
committerNIIBE Yutaka <[email protected]>2023-10-06 00:50:12 +0000
commit19caa5c267a53d248efea5a09b0bd10962fd8003 (patch)
tree36c3dd5a574c1394fbd7ee629ab1d275be6d5a8f
parentgpg-card: Give a hint on how to get help for the "yubikey" command. (diff)
downloadgnupg-19caa5c267a53d248efea5a09b0bd10962fd8003.tar.gz
gnupg-19caa5c267a53d248efea5a09b0bd10962fd8003.zip
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 <[email protected]>
-rw-r--r--agent/findkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/findkey.c b/agent/findkey.c
index eb2b7a17a..a5f022574 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;