aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t-syserror.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t-syserror.c')
-rw-r--r--tests/t-syserror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t-syserror.c b/tests/t-syserror.c
index b6973c3..25de86f 100644
--- a/tests/t-syserror.c
+++ b/tests/t-syserror.c
@@ -64,7 +64,7 @@ main (int argc, char *argv[])
return 1;
}
- errno = 0;
+ gpg_err_set_errno (0);
ec = gpg_err_code_from_syserror ();
if (ec != GPG_ERR_MISSING_ERRNO)