Fix build with gcc.

Build-tested by:	gjb
Approved by:	re (glebius)
This commit is contained in:
Konstantin Belousov 2013-09-11 17:31:22 +00:00
parent 87ee6303e5
commit 64c5de5483

View File

@ -2197,6 +2197,7 @@ vn_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio,
int error, bsize, nd, hdrlen, mnw;
bool inflight_called;
pg = NULL;
obj = NULL;
so = NULL;
m = NULL;
@ -2204,6 +2205,7 @@ vn_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio,
fsbytes = sbytes = 0;
hdrlen = mnw = 0;
rem = nbytes;
obj_size = 0;
inflight_called = false;
error = sendfile_getobj(td, fp, &obj, &vp, &shmfd, &obj_size, &bsize);