From 64c5de5483d0895b673ba6506d204762b8b11a60 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Wed, 11 Sep 2013 17:31:22 +0000 Subject: [PATCH] Fix build with gcc. Build-tested by: gjb Approved by: re (glebius) --- sys/kern/uipc_syscalls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index ced87c82db5..75aab6ea851 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -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);