From 261136bc32b456800f6dec7eedadea5b2a153eca Mon Sep 17 00:00:00 2001 From: hfang Date: Mon, 23 Mar 2009 09:12:51 +0000 Subject: fix Klocwork issues git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7926 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/DxeReportStatusCodeLibFramework/DxeSupport.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework') 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 -- cgit v1.2.3