diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-16 02:07:32 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-16 02:07:32 +0000 |
commit | 20bcdbcb69a63df43d897b51634a38df4e261b49 (patch) | |
tree | 2ae2599f8dc6a37cd1065071645eb64f97d3cebf /MdeModulePkg/Core/Dxe/FwVol | |
parent | 13f0a970d20b0a88aa4929fb647faf880b35f3c9 (diff) | |
download | edk2-20bcdbcb69a63df43d897b51634a38df4e261b49.zip edk2-20bcdbcb69a63df43d897b51634a38df4e261b49.tar.gz edk2-20bcdbcb69a63df43d897b51634a38df4e261b49.tar.bz2 |
Add assertion to ensure pointer dereference has been checked against NULL pointer.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7528 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe/FwVol')
-rw-r--r-- | MdeModulePkg/Core/Dxe/FwVol/FwVol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Dxe/FwVol/FwVol.c b/MdeModulePkg/Core/Dxe/FwVol/FwVol.c index 2829092..f2451b0 100644 --- a/MdeModulePkg/Core/Dxe/FwVol/FwVol.c +++ b/MdeModulePkg/Core/Dxe/FwVol/FwVol.c @@ -556,7 +556,7 @@ NotifyFwVolBlock ( //
Status = CoreHandleProtocol (Handle, &gEfiFirmwareVolumeBlockProtocolGuid, (VOID **)&Fvb);
ASSERT_EFI_ERROR (Status);
-
+ ASSERT (Fvb != NULL);
//
// Make sure the Fv Header is O.K.
|