1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

agent: Minor cleanup for recent change in findkey.c

* agent/findkey.c (agent_write_private_key): Avoid label name error.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-10-24 13:01:06 +02:00
parent fdb653a33e
commit 8c40b3b98d
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -157,14 +157,10 @@ agent_write_private_key (const unsigned char *grip,
{ {
fp = es_fopen (fname, "wbx,mode=-rw"); fp = es_fopen (fname, "wbx,mode=-rw");
if (!fp) if (!fp)
{ tmperr = gpg_error_from_syserror ();
tmperr = gpg_error_from_syserror ();
goto error;
}
} }
else if (!fp)
{ {
error:
log_error ("can't create '%s': %s\n", fname, gpg_strerror (tmperr)); log_error ("can't create '%s': %s\n", fname, gpg_strerror (tmperr));
xfree (fname); xfree (fname);
return tmperr; return tmperr;