summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/src/splice.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-12-29 17:55:10 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-12-29 17:55:10 +0000
commit859f99845ebd1653048e69c02c8e392e7bf096f4 (patch)
treeb8147db2ecb6cf92c18ca2d6ccd9fa605bca160c /libs/nixio/src/splice.c
parent74630d681464a8c351c2c5393e336df3c918dd6d (diff)
libs/nixio: fix uninitialized variable warning on Darwin in splice.c
Diffstat (limited to 'libs/nixio/src/splice.c')
-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 38a45c22ab..db63ea9a89 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