OcBootManagementLib: Respect optional param

This commit is contained in:
Goldfish64 2020-08-23 01:01:04 -05:00
parent fed62b1e9e
commit 55b93a9f5e

View File

@ -262,7 +262,7 @@ OcCheckArgumentFromEnv (
}
}
if (HasArgument) {
if (HasArgument && Value != NULL) {
*Value = AllocateCopyPool (AsciiStrnSizeS (ArgValue, ArgValueLength), ArgValue);
if (*Value == NULL) {
return FALSE;