changeset 12882:5249b6635922

6749418 setfacl Causes a Bus Error
author Amrita Sadhukhan <Amrita.Sadhukhan@Sun.COM>
date Tue, 20 Jul 2010 14:19:58 +0530
parents fb36eaeb6ee0
children d5c0ca4a2e95
files usr/src/cmd/setfacl/setfacl.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/setfacl/setfacl.c	Mon Jul 19 17:27:45 2010 -0700
+++ b/usr/src/cmd/setfacl/setfacl.c	Tue Jul 20 14:19:58 2010 +0530
@@ -19,8 +19,7 @@
  * CDDL HEADER END
  */
 /*
- * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
 /*
@@ -407,7 +406,7 @@
 {
 	aclent_t	*new_aclp;
 	aclent_t	tmpacl;
-	aclent_t	*taclp, *centry, *gentry;
+	aclent_t	*taclp, *centry = NULL, *gentry = NULL;
 	int		cur_cnt;
 	int		found = 0;
 	int		is_obj;