Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Oct 2010 19:07:37 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r214522 - head/sys/kern
Message-ID:  <201010291907.o9TJ7bTG051065@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Fri Oct 29 19:07:36 2010
New Revision: 214522
URL: http://svn.freebsd.org/changeset/base/214522

Log:
  Fix uninitialized variable.
  
  Found with:	Coverity Prevent(tm)
  CID:		8632

Modified:
  head/sys/kern/subr_acl_nfs4.c

Modified: head/sys/kern/subr_acl_nfs4.c
==============================================================================
--- head/sys/kern/subr_acl_nfs4.c	Fri Oct 29 18:56:51 2010	(r214521)
+++ head/sys/kern/subr_acl_nfs4.c	Fri Oct 29 19:07:36 2010	(r214522)
@@ -162,7 +162,7 @@ vaccess_acl_nfs4(enum vtype type, uid_t 
 	accmode_t priv_granted = 0;
 	int denied, explicitly_denied, access_mask, is_directory,
 	    must_be_owner = 0;
-	mode_t file_mode;
+	mode_t file_mode = 0;
 
 	KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND |
 	    VEXPLICIT_DENY | VREAD_NAMED_ATTRS | VWRITE_NAMED_ATTRS |



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