|
@@ -183,8 +183,13 @@ static void
|
|
summarize_posix_acl(struct posix_acl *acl, struct posix_acl_summary *pas)
|
|
summarize_posix_acl(struct posix_acl *acl, struct posix_acl_summary *pas)
|
|
{
|
|
{
|
|
struct posix_acl_entry *pa, *pe;
|
|
struct posix_acl_entry *pa, *pe;
|
|
- pas->users = 0;
|
|
|
|
- pas->groups = 0;
|
|
|
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ * Only pas.users and pas.groups need initialization; previous
|
|
|
|
+ * posix_acl_valid() calls ensure that the other fields will be
|
|
|
|
+ * initialized in the following loop. But, just to placate gcc:
|
|
|
|
+ */
|
|
|
|
+ memset(pas, 0, sizeof(*pas));
|
|
pas->mask = 07;
|
|
pas->mask = 07;
|
|
|
|
|
|
pe = acl->a_entries + acl->a_count;
|
|
pe = acl->a_entries + acl->a_count;
|