diff options
author | hfang <hfang@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-03-23 09:12:51 +0000 |
---|---|---|
committer | hfang <hfang@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-03-23 09:12:51 +0000 |
commit | 261136bc32b456800f6dec7eedadea5b2a153eca (patch) | |
tree | 648a45a2af0145a301ddeec3e1dca0dce12945f6 /IntelFrameworkModulePkg/Library/PeiReportStatusCodeLib | |
parent | 3fb46d0b04b82edeee118cb37dc11727d7fa8d8a (diff) | |
download | edk2-platforms-261136bc32b456800f6dec7eedadea5b2a153eca.tar.xz |
fix Klocwork issues
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7926 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Library/PeiReportStatusCodeLib')
-rw-r--r-- | IntelFrameworkModulePkg/Library/PeiReportStatusCodeLib/ReportStatusCodeLib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Library/PeiReportStatusCodeLib/ReportStatusCodeLib.c b/IntelFrameworkModulePkg/Library/PeiReportStatusCodeLib/ReportStatusCodeLib.c index d027dc4a8e..4f0901b1d2 100644 --- a/IntelFrameworkModulePkg/Library/PeiReportStatusCodeLib/ReportStatusCodeLib.c +++ b/IntelFrameworkModulePkg/Library/PeiReportStatusCodeLib/ReportStatusCodeLib.c @@ -471,7 +471,9 @@ ReportStatusCodeEx ( ExtendedDataGuid = &gEfiStatusCodeSpecificDataGuid;
}
CopyGuid (&StatusCodeData->Type, ExtendedDataGuid);
- CopyMem (StatusCodeData + 1, ExtendedData, ExtendedDataSize);
+ if (ExtendedData != NULL) {
+ CopyMem (StatusCodeData + 1, ExtendedData, ExtendedDataSize);
+ }
if (CallerId == NULL) {
CallerId = &gEfiCallerIdGuid;
}
|