libs/nixio: fix uninitialized variable warning on Darwin in splice.c

This commit is contained in:
Jo-Philipp Wich 2009-12-29 17:55:10 +00:00
parent 74630d6814
commit 859f99845e

View file

@ -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