ksud: ignore empty sepolicy rule

This commit is contained in:
tiann
2023-02-14 18:08:57 +08:00
parent f9b3218ded
commit 0c8b4a48de

View File

@@ -352,6 +352,9 @@ where
let mut statements = vec![];
for line in input.split(['\n', ';']) {
if line.trim().is_empty() {
continue;
}
if let Ok((_, statement)) = PolicyStatement::parse(line.trim()) {
statements.push(statement);
} else if strict {