aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/rungpg.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gpgme/rungpg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpgme/rungpg.c b/gpgme/rungpg.c
index 39d66d31..76bcaaed 100644
--- a/gpgme/rungpg.c
+++ b/gpgme/rungpg.c
@@ -516,7 +516,7 @@ gpg_new (void **engine, const char *file_name, const char *home_dir)
err = ttyname_r (1, dft_ttyname, sizeof (dft_ttyname));
if (err)
- rc = gpg_error_from_errno (errno);
+ rc = gpg_error_from_errno (err);
else
{
if (*dft_ttyname)