summaryrefslogtreecommitdiffstats
path: root/common/xreadline.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/xreadline.c')
-rw-r--r--common/xreadline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/xreadline.c b/common/xreadline.c
index 8ca72b75f..4ea10d75b 100644
--- a/common/xreadline.c
+++ b/common/xreadline.c
@@ -98,7 +98,7 @@ read_line (FILE *fp,
*length_of_buffer = 0;
if (max_length)
*max_length = 0;
- errno = save_errno;
+ gpg_err_set_errno (save_errno);
return -1;
}
buffer = *addr_of_buffer;