summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--libs/nixio/src/splice.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/nixio/src/splice.c b/libs/nixio/src/splice.c
index 38a45c22a..db63ea9a8 100644
--- a/libs/nixio/src/splice.c
+++ b/libs/nixio/src/splice.c
@@ -145,6 +145,7 @@ static int nixio_sendfile(lua_State *L) {
do {
#ifdef __DARWIN__
r = sendfile(infd, sock, offset, (off_t *)&len, NULL, 0);
+ spliced = r;
#else
r = sendfile(infd, sock, offset, len, NULL, &spliced, 0);
#endif