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:
parent
b4449ffabc
commit
19caa5c267
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user