Skip to content

Commit

Permalink
Fixes after GCC static analysis
Browse files Browse the repository at this point in the history
- unused variable
- potential use of uninitialized variable
  • Loading branch information
NikolajSchlej committed Jul 18, 2016
1 parent 03567db commit 434a350
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/ffsparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3115,7 +3115,7 @@ USTATUS FfsParser::parseNvarStore(const UModelIndex & index)

bool isInvalid = false;
bool isInvalidLink = false;
bool isDataOnly = false;
//bool isDataOnly = false;
bool hasExtendedHeader = false;
bool hasChecksum = false;
bool hasTimestamp = false;
Expand Down Expand Up @@ -3310,7 +3310,7 @@ USTATUS FfsParser::parseNvarStore(const UModelIndex & index)
subtype = Subtypes::DataNvarEntry;
}

isDataOnly = true;
//isDataOnly = true;
// Do not parse further
goto parsing_done;
}
Expand Down Expand Up @@ -4412,7 +4412,7 @@ USTATUS FfsParser::parseVssStoreBody(const UModelIndex & index)
UString name;
UString text;
EFI_GUID* variableGuid;
CHAR16* variableName;
CHAR16* variableName = (CHAR16*)L"";
UByteArray header;
UByteArray body;

Expand Down

0 comments on commit 434a350

Please sign in to comment.