From owner-svn-src-head@FreeBSD.ORG Wed Sep 11 17:31:23 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 46481931; Wed, 11 Sep 2013 17:31:23 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3287E2ADC; Wed, 11 Sep 2013 17:31:23 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8BHVNk7008313; Wed, 11 Sep 2013 17:31:23 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8BHVNtY008312; Wed, 11 Sep 2013 17:31:23 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201309111731.r8BHVNtY008312@svn.freebsd.org> From: Konstantin Belousov Date: Wed, 11 Sep 2013 17:31:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255475 - head/sys/kern X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Sep 2013 17:31:23 -0000 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);