summaryrefslogtreecommitdiffstats
path: root/IntelFrameworkModulePkg
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-24 07:04:45 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-24 07:04:45 +0000
commit775a9b19c60a563b31e8f100d8b5b36288bbd52b (patch)
tree15f12a53397e82bb4e142c0d31abffb0dd163eae /IntelFrameworkModulePkg
parent8b7a3578165b14ebbadc08e80fdfdf88fd2afde4 (diff)
downloadedk2-775a9b19c60a563b31e8f100d8b5b36288bbd52b.tar.gz
edk2-775a9b19c60a563b31e8f100d8b5b36288bbd52b.tar.bz2
edk2-775a9b19c60a563b31e8f100d8b5b36288bbd52b.zip
Add NULL checking for input parameter.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8645 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
index 0eadec9fe7..b72d8102c0 100644
--- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
+++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
@@ -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;
//