Skip to content

Commit 7b1227b

Browse files
jwcart2stephensmalley
authored andcommitted
libsepol/cil: Initialize the multiple_decls field of the cil db
Initialize the multiple_decls field when intializing the structure cil_db. Fixes: fafe4c2 ("libsepol: cil: Add ability to redeclare types[attributes]") Reported-by: Topi Miettinen <[email protected] Acked-by: Stephen Smalley <[email protected]> Signed-off-by: James Carter <[email protected]>
1 parent c554c3d commit 7b1227b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libsepol/cil/src/cil.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ void cil_db_init(struct cil_db **db)
459459
(*db)->preserve_tunables = CIL_FALSE;
460460
(*db)->handle_unknown = -1;
461461
(*db)->mls = -1;
462+
(*db)->multiple_decls = CIL_FALSE;
462463
(*db)->target_platform = SEPOL_TARGET_SELINUX;
463464
(*db)->policy_version = POLICYDB_VERSION_MAX;
464465
}

0 commit comments

Comments
 (0)