UINT32 DependenciesSize;\r
\r
Status = EFI_SUCCESS;\r
+ Private = NULL;\r
Updateable = 0;\r
BooleanValue = FALSE;\r
FmpHeaderSize = 0;\r
\r
cleanup:\r
mProgressFunc = NULL;\r
- SetLastAttemptStatusInVariable (Private, LastAttemptStatus);\r
+\r
+ if (Private != NULL) {\r
+ SetLastAttemptStatusInVariable (Private, LastAttemptStatus);\r
+ }\r
\r
if (Progress != NULL) {\r
//\r
// Need repopulate after SetImage is called to\r
// update LastAttemptVersion and LastAttemptStatus.\r
//\r
- Private->DescriptorPopulated = FALSE;\r
+ if (Private != NULL) {\r
+ Private->DescriptorPopulated = FALSE;\r
+ }\r
\r
return Status;\r
}\r