aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2017-04-17 07:43:36 +0000
committerNIIBE Yutaka <[email protected]>2017-04-17 07:43:36 +0000
commit45c52cca1401b930878a8f901b63cfbb22e9e327 (patch)
tree8d3807b0b8c62ffe7ce65e1b778ef0c238bab426 /agent/command-ssh.c
parenttests: Minor memory fix. (diff)
downloadgnupg-45c52cca1401b930878a8f901b63cfbb22e9e327.tar.gz
gnupg-45c52cca1401b930878a8f901b63cfbb22e9e327.zip
agent: Minor cleanup.
* agent/command-ssh.c (ssh_key_to_protected_buffer): Not touch ERR. * agent/command.c (cmd_genkey, cmd_import_key): Clean up. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to '')
-rw-r--r--agent/command-ssh.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c
index 5c7cf1f26..fdde0fbfd 100644
--- a/agent/command-ssh.c
+++ b/agent/command-ssh.c
@@ -2975,7 +2975,6 @@ ssh_key_to_protected_buffer (gcry_sexp_t key, const char *passphrase,
unsigned int buffer_new_n;
gpg_error_t err;
- err = 0;
buffer_new_n = gcry_sexp_sprint (key, GCRYSEXP_FMT_CANON, NULL, 0);
buffer_new = xtrymalloc_secure (buffer_new_n);
if (! buffer_new)