audk/FmpDevicePkg/FmpDxe
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
..
DetectTestKey.c FmpDevicePkg/FmpDxe: Improve all DEBUG() messages 2019-08-15 17:22:24 +08:00
FmpDxe.c FmpDevicePkg/FmpDxe: Fix Clang build error 2020-08-13 07:09:15 +00:00
FmpDxe.h FmpDevicePkg/FmpDxe: Use new Fmp dependency libraries 2020-05-15 06:11:44 +00:00
FmpDxe.inf FmpDevicePkg/FmpDxe: Use new Fmp dependency libraries 2020-05-15 06:11:44 +00:00
FmpDxe.uni FmpDevicePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:00 -07:00
FmpDxeExtra.uni FmpDevicePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:00 -07:00
FmpDxeLib.inf FmpDevicePkg/FmpDxe: Use new Fmp dependency libraries 2020-05-15 06:11:44 +00:00
VariableSupport.c FmpDevicePkg/FmpDxe: Remove use of CatSprint() 2019-08-15 17:22:24 +08:00
VariableSupport.h FmpDevicePkg/FmpDxe: Different variable for each FMP Descriptor 2019-08-15 17:22:23 +08:00