aboutsummaryrefslogtreecommitdiffstats
path: root/src/get-env.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/get-env.c')
-rw-r--r--src/get-env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/get-env.c b/src/get-env.c
index bcd45942..57fd4196 100644
--- a/src/get-env.c
+++ b/src/get-env.c
@@ -46,7 +46,7 @@ _gpgme_getenv (const char *name, char **value)
{
*value = strdup (env_value);
if (!*value)
- return gpg_error_from_errno (errno);
+ return gpg_error_from_syserror ();
}
return 0;
}