From 434a35081953ed50e0d57ef175fe7d3665d2d418 Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Mon, 18 Jul 2016 07:08:08 +0200 Subject: [PATCH] Fixes after GCC static analysis - unused variable - potential use of uninitialized variable --- common/ffsparser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/ffsparser.cpp b/common/ffsparser.cpp index a0a999c..9a1e17d 100644 --- a/common/ffsparser.cpp +++ b/common/ffsparser.cpp @@ -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; @@ -3310,7 +3310,7 @@ USTATUS FfsParser::parseNvarStore(const UModelIndex & index) subtype = Subtypes::DataNvarEntry; } - isDataOnly = true; + //isDataOnly = true; // Do not parse further goto parsing_done; } @@ -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;