libsepol/cil: Initialize the multiple_decls field of the cil db

Initialize the multiple_decls field when intializing the structure
cil_db.

Fixes: fafe4c212b ("libsepol: cil: Add ability to redeclare types[attributes]")
Reported-by: Topi Miettinen <toiwoton@gmail.com
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
James Carter 2020-05-26 14:50:57 -04:00 committed by Stephen Smalley
parent c554c3d88a
commit 7b1227b19e
1 changed files with 1 additions and 0 deletions

View File

@ -459,6 +459,7 @@ void cil_db_init(struct cil_db **db)
(*db)->preserve_tunables = CIL_FALSE; (*db)->preserve_tunables = CIL_FALSE;
(*db)->handle_unknown = -1; (*db)->handle_unknown = -1;
(*db)->mls = -1; (*db)->mls = -1;
(*db)->multiple_decls = CIL_FALSE;
(*db)->target_platform = SEPOL_TARGET_SELINUX; (*db)->target_platform = SEPOL_TARGET_SELINUX;
(*db)->policy_version = POLICYDB_VERSION_MAX; (*db)->policy_version = POLICYDB_VERSION_MAX;
} }