diff src/os/unix/ngx_freebsd_sendfile_chain.c @ 203:c9da5900c79e

nginx-0.0.1-2003-12-02-08:47:29 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 02 Dec 2003 05:47:29 +0000
parents 267ea1d98683
children e0c502f15852
line wrap: on
line diff
--- a/src/os/unix/ngx_freebsd_sendfile_chain.c
+++ b/src/os/unix/ngx_freebsd_sendfile_chain.c
@@ -176,6 +176,8 @@ ngx_log_debug(c->log, "NOPUSH");
                 hsize = 0;
             }
 
+            sent = 0;
+
             rc = sendfile(file->file->fd, c->fd, file->file_pos,
                           fsize + hsize, &hdtr, &sent, 0);