Add NULL checking for input parameter.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8645 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2009-06-24 07:04:45 +00:00
parent 8b7a357816
commit 775a9b19c6

View File

@ -18,7 +18,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
/**
Check if we need to save the EFI variable with "ConVarName" as name
as NV type
If ConVarName is NULL, then ASSERT().
@param ConVarName The name of the EFI variable.
@retval TRUE Set the EFI variable as NV type.
@ -31,6 +32,8 @@ IsNvNeed (
{
CHAR16 *Ptr;
ASSERT (ConVarName != NULL);
Ptr = ConVarName;
//