summaryrefslogtreecommitdiff
path: root/src/libstddjb/openwritevnclose_unsafe.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-10-08 20:20:05 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-10-08 20:20:05 +0000
commit05f0480fcf0ae68552ae3a670330a850898278f6 (patch)
tree4a688f8159f7769dbbbd3a932ddab33a7ebd1191 /src/libstddjb/openwritevnclose_unsafe.c
parentbe91976103cab950f954aa9a8e6a6fcdc939a167 (diff)
downloadskalibs-05f0480fcf0ae68552ae3a670330a850898278f6.tar.xz
Fix double close in openwrite*
Diffstat (limited to 'src/libstddjb/openwritevnclose_unsafe.c')
-rw-r--r--src/libstddjb/openwritevnclose_unsafe.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libstddjb/openwritevnclose_unsafe.c b/src/libstddjb/openwritevnclose_unsafe.c
index ddcbfd3..f3e6a6a 100644
--- 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 ;
}