diff options
author | Eric Dong <eric.dong@intel.com> | 2013-12-09 03:22:36 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-12-09 03:22:36 +0000 |
commit | 0f83ac340fef4972b1542d29613a90230695749b (patch) | |
tree | 8d935ddfde46698155ba68c4ce114083ddc387f4 /MdeModulePkg/Universal/HiiDatabaseDxe | |
parent | 05de47ef04864cd9d55228b2065d7397387e54ac (diff) | |
download | edk2-0f83ac340fef4972b1542d29613a90230695749b.zip edk2-0f83ac340fef4972b1542d29613a90230695749b.tar.gz edk2-0f83ac340fef4972b1542d29613a90230695749b.tar.bz2 |
Refine code to fix potential code bug.
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14949 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/HiiDatabaseDxe')
-rw-r--r-- | MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c b/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c index 69b740a..0b2138c 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c @@ -1287,7 +1287,7 @@ IsThisVarstore ( //
// If ConfigHdr has name field and varstore not has name, return FALSE.
//
- if (Name == NULL && StrStr (ConfigHdr, L"NAME=&") == NULL) {
+ if (Name == NULL && ConfigHdr != NULL && StrStr (ConfigHdr, L"NAME=&") == NULL) {
return FALSE;
}
|