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/PeiReportStatusCodeLib/ReportStatusCodeLib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'IntelFrameworkModulePkg/Library/PeiReportStatusCodeLib') 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; } -- cgit v1.2.3