Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Sep 2013 17:31:23 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255475 - head/sys/kern
Message-ID:  <201309111731.r8BHVNtY008312@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Sep 11 17:31:22 2013
New Revision: 255475
URL: http://svnweb.freebsd.org/changeset/base/255475

Log:
  Fix build with gcc.
  
  Build-tested by:	gjb
  Approved by:	re (glebius)

Modified:
  head/sys/kern/uipc_syscalls.c

Modified: head/sys/kern/uipc_syscalls.c
==============================================================================
--- head/sys/kern/uipc_syscalls.c	Wed Sep 11 17:23:42 2013	(r255474)
+++ head/sys/kern/uipc_syscalls.c	Wed Sep 11 17:31:22 2013	(r255475)
@@ -2197,6 +2197,7 @@ vn_sendfile(struct file *fp, int sockfd,
 	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,
 	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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309111731.r8BHVNtY008312>