From owner-svn-src-stable-8@FreeBSD.ORG Fri Jun 11 15:21:12 2010 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5DDD1065672; Fri, 11 Jun 2010 15:21:12 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from svn.freebsd.org (unknown [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D4A5E8FC23; Fri, 11 Jun 2010 15:21:12 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o5BFLCg2012871; Fri, 11 Jun 2010 15:21:12 GMT (envelope-from trasz@svn.freebsd.org) Received: (from trasz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o5BFLCoM012869; Fri, 11 Jun 2010 15:21:12 GMT (envelope-from trasz@svn.freebsd.org) Message-Id: <201006111521.o5BFLCoM012869@svn.freebsd.org> From: Edward Tomasz Napierala Date: Fri, 11 Jun 2010 15:21:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r209046 - stable/8/lib/libc/posix1e X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2010 15:21:13 -0000 Author: trasz Date: Fri Jun 11 15:21:12 2010 New Revision: 209046 URL: http://svn.freebsd.org/changeset/base/209046 Log: Fix usage of uninitialized variable. Found with: Coverity Prevent CID: 7517 Approved by: re (kib) Modified: stable/8/lib/libc/posix1e/acl_strip.c Modified: stable/8/lib/libc/posix1e/acl_strip.c ============================================================================== --- stable/8/lib/libc/posix1e/acl_strip.c Fri Jun 11 14:11:24 2010 (r209045) +++ stable/8/lib/libc/posix1e/acl_strip.c Fri Jun 11 15:21:12 2010 (r209046) @@ -46,7 +46,7 @@ static acl_t _nfs4_acl_strip_np(const acl_t aclp, int recalculate_mask) { acl_t newacl; - mode_t mode; + mode_t mode = 0; newacl = acl_init(ACL_MAX_ENTRIES); if (newacl == NULL) {