From fc5a2ea7ab7dedb52cc7fbe561d16b81bbc17a59 Mon Sep 17 00:00:00 2001 From: Antonio Diaz Diaz Date: Thu, 23 Aug 2018 00:27:38 +0200 Subject: [PATCH] Fix error in logic that type == -xz is tested in two branches of an if..else statement. Signed-off-by: Antonio Diaz Diaz --- krusader/VFS/krarchandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/krusader/VFS/krarchandler.cpp b/krusader/VFS/krarchandler.cpp index 0656744..1e744f2 100644 --- a/krusader/VFS/krarchandler.cpp +++ b/krusader/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;