From a1795d8e683b7bb368241a4e0d4784f9aed1b1c4 Mon Sep 17 00:00:00 2001
From: Antonio Diaz Diaz <antonio@gnu.org>
Date: Thu, 23 Aug 2018 00:27:38 +0200
Subject: Fix error in logic that type == -xz is tested in two branches of an
 if..else statement.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Antonio Diaz Diaz <antonio@gnu.org>
Signed-off-by: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
---
 src/app/VFS/krarchandler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/VFS/krarchandler.cpp b/src/app/VFS/krarchandler.cpp
index be487c2..dd68310 100644
--- a/src/app/VFS/krarchandler.cpp
+++ b/src/app/VFS/krarchandler.cpp
@@ -627,7 +627,7 @@ bool KRarcHandler::checkStatus( TQString type, int exitCode ) {
 		return exitCode == 0 || exitCode == 1;
 	else if( type == "-ace" || type == "zip2" || type == "-lha" || type == "-rpm" || type == "cpio" ||
 	         type == "-tar" || type == "tarz" || type == "-tbz" || type == "-tgz" || type == "-arj" ||
-	         type == "-deb" || type == "-txz" || type == "-xz")
+	         type == "-deb" || type == "-txz")
 		return exitCode == 0;
 	else if (type == "gzip" || type == "-xz")
 		return exitCode == 0 || exitCode == 2;
-- 
cgit v1.2.3

