mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2026-02-01 15:59:39 +00:00
OcBootManagementLib: Respect optional param
This commit is contained in:
parent
fed62b1e9e
commit
55b93a9f5e
@ -262,7 +262,7 @@ OcCheckArgumentFromEnv (
|
||||
}
|
||||
}
|
||||
|
||||
if (HasArgument) {
|
||||
if (HasArgument && Value != NULL) {
|
||||
*Value = AllocateCopyPool (AsciiStrnSizeS (ArgValue, ArgValueLength), ArgValue);
|
||||
if (*Value == NULL) {
|
||||
return FALSE;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user