From: Jo-Philipp Wich Date: Tue, 29 Dec 2009 17:55:10 +0000 (+0000) Subject: libs/nixio: fix uninitialized variable warning on Darwin in splice.c X-Git-Tag: 0.10.0~862 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=859f99845ebd1653048e69c02c8e392e7bf096f4;p=oweals%2Fluci.git libs/nixio: fix uninitialized variable warning on Darwin in splice.c --- 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