From 9cd50226980321a27a793bce63fc093d4fad0741 Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Mon, 18 Apr 2016 16:44:49 +0200 Subject: [PATCH] More Coverity FTW - dead code was dead, now it lives again --- common/ffsparser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/ffsparser.cpp b/common/ffsparser.cpp index 14b5d58..8496fd3 100644 --- a/common/ffsparser.cpp +++ b/common/ffsparser.cpp @@ -2370,6 +2370,7 @@ STATUS FfsParser::parseGuidedSectionBody(const QModelIndex & index) } else { msg(QObject::tr("parseGuidedSectionBody: can't guess the correct decompression algorithm, both preparse steps are failed"), index); + parseCurrentSection = false; } } @@ -2390,8 +2391,10 @@ STATUS FfsParser::parseGuidedSectionBody(const QModelIndex & index) info += QObject::tr("\nCompression algorithm: LZMA"); info += QObject::tr("\nDecompressed size: %1h (%2)").hexarg(processed.length()).arg(processed.length()); } - else + else { info += QObject::tr("\nCompression algorithm: unknown"); + parseCurrentSection = false; + } } // Add info