diff --git a/sepolicy.c b/sepolicy.c index f7e925357..7a6b8599e 100644 --- a/sepolicy.c +++ b/sepolicy.c @@ -60,6 +60,7 @@ static int add_irule(int s, int t, int c, int p, int effect, int not) { if (av == NULL) { av = cmalloc(sizeof(*av)); + memset(av, 0, sizeof(*av)); av->data |= 1U << (p - 1); int ret = avtab_insert(&policy->te_avtab, &key, av); if (ret) {