summaryrefslogtreecommitdiff
path: root/core/sendfile.c
diff options
context:
space:
mode:
authorRoberto De Ioris <roberto@unbit.it>2012-10-18 12:32:02 +0200
committerRoberto De Ioris <roberto@unbit.it>2012-10-18 12:32:02 +0200
commitef80a7bba908cb9786bac560f9c3cb390429829b (patch)
treeedfe4b346921312891262ffd20abc87960689f7c /core/sendfile.c
parent8a65125ae58894518ed2532476b7a0a195ecc7cf (diff)
downloaduwsgi-ef80a7bba908cb9786bac560f9c3cb390429829b.tar.gz
fixed offload to thread
Diffstat (limited to 'core/sendfile.c')
-rw-r--r--core/sendfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/sendfile.c b/core/sendfile.c
index 999e22a7..1bf63202 100644
--- a/core/sendfile.c
+++ b/core/sendfile.c
@@ -28,6 +28,7 @@ int uwsgi_offload_request_do(struct wsgi_request *wsgi_req, char *filename, size
uor.pos = 0;
uor.len = len;
uor.written = 0;
+ uor.buf = NULL;
uor.prev = NULL;
uor.next = NULL;