diff options
Diffstat (limited to 'src/libstddjb/openreadnclose.c')
-rw-r--r-- | src/libstddjb/openreadnclose.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libstddjb/openreadnclose.c b/src/libstddjb/openreadnclose.c index 57a9bdc..e765499 100644 --- a/src/libstddjb/openreadnclose.c +++ b/src/libstddjb/openreadnclose.c @@ -12,9 +12,7 @@ static ssize_t readnclose (int fd, char *s, size_t n) r = allread(fd, s, n) ; if (errno) { - int e = errno ; fd_close(fd) ; - errno = e ; return -1 ; } fd_close(fd) ; |