From 859f99845ebd1653048e69c02c8e392e7bf096f4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 29 Dec 2009 17:55:10 +0000 Subject: [PATCH] libs/nixio: fix uninitialized variable warning on Darwin in splice.c --- libs/nixio/src/splice.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.25.1