mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-17 14:07:03 +01:00
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>
This commit is contained in:
parent
26939ea222
commit
a8618fdccd
@ -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