mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +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:
parent
b4449ffabc
commit
19caa5c267
@ -118,7 +118,7 @@ agent_write_private_key (const unsigned char *grip,
|
|||||||
gpg_error_t err;
|
gpg_error_t err;
|
||||||
char *fname = NULL;
|
char *fname = NULL;
|
||||||
char *tmpfname = NULL;
|
char *tmpfname = NULL;
|
||||||
estream_t fp;
|
estream_t fp = NULL;
|
||||||
int newkey;
|
int newkey;
|
||||||
nvc_t pk = NULL;
|
nvc_t pk = NULL;
|
||||||
gcry_sexp_t key = NULL;
|
gcry_sexp_t key = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user