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/DxeReportStatusCodeLibFramework | |
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/DxeReportStatusCodeLibFramework')
-rw-r--r-- | IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeSupport.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeSupport.c b/IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeSupport.c index 602e42b182..bfa5e51305 100644 --- a/IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeSupport.c +++ b/IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeSupport.c @@ -125,7 +125,9 @@ InternalReportStatusCodeEx ( //
// Fill in the extended data buffer
//
- CopyMem (StatusCodeData + 1, ExtendedData, ExtendedDataSize);
+ if (ExtendedData != NULL) {
+ CopyMem (StatusCodeData + 1, ExtendedData, ExtendedDataSize);
+ }
//
// Report the status code
|