svn commit: r208784 - head/lib/libc/posix1e

Edward Tomasz Napierala trasz at FreeBSD.org
Thu Jun 3 14:27:18 UTC 2010


Author: trasz
Date: Thu Jun  3 14:27:18 2010
New Revision: 208784
URL: http://svn.freebsd.org/changeset/base/208784

Log:
  Fix usage of uninitialized variable.
  
  Found with:	Coverity Prevent
  CID:		7517
  MFC after:	2 weeks

Modified:
  head/lib/libc/posix1e/acl_strip.c

Modified: head/lib/libc/posix1e/acl_strip.c
==============================================================================
--- head/lib/libc/posix1e/acl_strip.c	Thu Jun  3 14:16:58 2010	(r208783)
+++ head/lib/libc/posix1e/acl_strip.c	Thu Jun  3 14:27:18 2010	(r208784)
@@ -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) {


More information about the svn-src-head mailing list