projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74630d6
)
libs/nixio: fix uninitialized variable warning on Darwin in splice.c
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 29 Dec 2009 17:55:10 +0000
(17:55 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 29 Dec 2009 17:55:10 +0000
(17:55 +0000)
libs/nixio/src/splice.c
patch
|
blob
|
history
diff --git
a/libs/nixio/src/splice.c
b/libs/nixio/src/splice.c
index 38a45c22abc5cbbb6228ceae5e4684b4de0ef43d..db63ea9a896c8ed5ed5d2e94b75810c11aaccadd 100644
(file)
--- 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