mirror of
https://github.com/NevermindZZT/letter-shell.git
synced 2025-01-21 10:02:54 +08:00
修复 一个空指针问题
This commit is contained in:
parent
35cadf2695
commit
265656bdf6
@ -438,8 +438,9 @@ signed char shellCheckPermission(Shell *shell, ShellCommand *command)
|
||||
{
|
||||
return ((!command->attr.attrs.permission
|
||||
|| command->attr.attrs.type == SHELL_TYPE_USER
|
||||
|| (command->attr.attrs.permission
|
||||
& shell->info.user->attr.attrs.permission))
|
||||
|| (shell->info.user
|
||||
&& (command->attr.attrs.permission
|
||||
& shell->info.user->attr.attrs.permission)))
|
||||
&& (shell->status.isChecked
|
||||
|| command->attr.attrs.enableUnchecked))
|
||||
? 0 : -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user