Change a little parsing handling

This commit is contained in:
topjohnwu
2024-03-21 00:04:09 -07:00
parent a9ee2d7d18
commit 6b4baa3bcd
4 changed files with 24 additions and 32 deletions
+2 -2
View File
@@ -257,9 +257,9 @@ fn exec_statement(sepolicy: Pin<&mut sepolicy>, tokens: &mut Tokens) -> LoggedRe
match action {
Token::TT => {
let o = if tokens.peek().is_none() {
vec![]
""
} else {
vec![parse_id(tokens)?]
parse_id(tokens)?
};
sepolicy.type_transition(s, t, c, d, o)
}