mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 07:58:22 +08:00
Fixes after GCC static analysis
- unused variable - potential use of uninitialized variable
This commit is contained in:
parent
03567dbe66
commit
434a350819
@ -3115,7 +3115,7 @@ USTATUS FfsParser::parseNvarStore(const UModelIndex & index)
|
|||||||
|
|
||||||
bool isInvalid = false;
|
bool isInvalid = false;
|
||||||
bool isInvalidLink = false;
|
bool isInvalidLink = false;
|
||||||
bool isDataOnly = false;
|
//bool isDataOnly = false;
|
||||||
bool hasExtendedHeader = false;
|
bool hasExtendedHeader = false;
|
||||||
bool hasChecksum = false;
|
bool hasChecksum = false;
|
||||||
bool hasTimestamp = false;
|
bool hasTimestamp = false;
|
||||||
@ -3310,7 +3310,7 @@ USTATUS FfsParser::parseNvarStore(const UModelIndex & index)
|
|||||||
subtype = Subtypes::DataNvarEntry;
|
subtype = Subtypes::DataNvarEntry;
|
||||||
}
|
}
|
||||||
|
|
||||||
isDataOnly = true;
|
//isDataOnly = true;
|
||||||
// Do not parse further
|
// Do not parse further
|
||||||
goto parsing_done;
|
goto parsing_done;
|
||||||
}
|
}
|
||||||
@ -4412,7 +4412,7 @@ USTATUS FfsParser::parseVssStoreBody(const UModelIndex & index)
|
|||||||
UString name;
|
UString name;
|
||||||
UString text;
|
UString text;
|
||||||
EFI_GUID* variableGuid;
|
EFI_GUID* variableGuid;
|
||||||
CHAR16* variableName;
|
CHAR16* variableName = (CHAR16*)L"";
|
||||||
UByteArray header;
|
UByteArray header;
|
||||||
UByteArray body;
|
UByteArray body;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user