summaryrefslogtreecommitdiff
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
parentbe91976103cab950f954aa9a8e6a6fcdc939a167 (diff)
downloadskalibs-05f0480fcf0ae68552ae3a670330a850898278f6.tar.xz
Fix double close in openwrite*
-rw-r--r--src/libstddjb/openwritenclose_unsafe.c1
-rw-r--r--src/libstddjb/openwritevnclose_unsafe.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/libstddjb/openwritenclose_unsafe.c b/src/libstddjb/openwritenclose_unsafe.c
index e5ac260..7969e4f 100644
--- 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
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 ;
}