skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit 05f0480fcf0ae68552ae3a670330a850898278f6
parent be91976103cab950f954aa9a8e6a6fcdc939a167
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Sun,  8 Oct 2017 20:20:05 +0000

 Fix double close in openwrite*

Diffstat:
Msrc/libstddjb/openwritenclose_unsafe.c | 1-
Msrc/libstddjb/openwritevnclose_unsafe.c | 1-
2 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/libstddjb/openwritenclose_unsafe.c b/src/libstddjb/openwritenclose_unsafe.c @@ -16,6 +16,5 @@ int openwritenclose_unsafe_internal (char const *fn, char const *s, size_t len, errno = e ; return 0 ; } - fd_close(fd) ; return 1 ; } diff --git a/src/libstddjb/openwritevnclose_unsafe.c b/src/libstddjb/openwritevnclose_unsafe.c @@ -18,6 +18,5 @@ int openwritevnclose_unsafe_internal (char const *fn, struct iovec const *v, uns errno = e ; return 0 ; } - fd_close(fd) ; return 1 ; }