audk/FmpDevicePkg
Michael Kubacki 3633d5309f FmpDevicePkg/FmpDxe: Fix Clang build error
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2887

The local Private pointer variable in SetTheImage() is initialized
based on the caller provided This pointer argument. The cleanup
label path uses the Private pointer which will not be
initialized if This is NULL.

This change initializes Private to NULL and accounts for Private
potentially being NULL in the cleanup label path.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Cc: Wei6 Xu <wei6.xu@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Tested-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Guomin Jiang <guomin.jiang@intel.com>
2020-08-13 07:09:15 +00:00
..
CapsuleUpdatePolicyDxe FmpDevicePkg: Fix spelling errors 2019-10-23 08:08:08 -07:00
FmpDxe FmpDevicePkg/FmpDxe: Fix Clang build error 2020-08-13 07:09:15 +00:00
Include/Library FmpDevicePkg/FmpDependencyLib: Correct ValidateDependency() documentation 2020-08-07 02:30:01 +00:00
Library FmpDevicePkg/FmpDependencyCheckLib: Return unsatisfied on handle failure 2020-08-07 02:30:01 +00:00
PrivateInclude FmpDevicePkg: Fix spelling errors 2019-10-23 08:08:08 -07:00
Test FmpDevicePkg/Test: Add FmpDependencyLib unit test 2020-05-15 06:11:44 +00:00
FmpDevicePkg.ci.yaml FmpDevicePkg/FmpDevicePkg.ci.yaml: Add configuration for LicenseCheck 2020-07-31 02:49:51 +00:00
FmpDevicePkg.dec FmpDevicePkg: Add FmpDependencyDevice library class and NULL instance 2020-05-15 06:11:44 +00:00
FmpDevicePkg.dsc FmpDevicePkg: Add FmpDependencyDevice library class and NULL instance 2020-05-15 06:11:44 +00:00
FmpDevicePkg.uni FmpDevicePkg: Fix spelling errors 2019-10-23 08:08:08 -07:00
FmpDevicePkgExtra.uni FmpDevicePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:00 -07:00