[X2Go-Commits] [x2goclient] 196/219: src/x2goutils.cpp: fix faulty logic in find_binary (): only reset the given path to CWD iff it's actually empty. Not the other way around.

git-admin at x2go.org git-admin at x2go.org
Thu Sep 22 04:37:34 CEST 2016


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch bugfix/osx
in repository x2goclient.

commit 93a7b94d4c44f56f965e6be423e57517c4539ea6
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Wed Jun 22 04:51:28 2016 +0200

    src/x2goutils.cpp: fix faulty logic in find_binary (): only reset the given path to CWD iff it's actually empty. Not the other way around.
---
 debian/changelog  |    2 ++
 src/x2goutils.cpp |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 3598108..a43e197 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -329,6 +329,8 @@ x2goclient (4.0.5.3-0x2go1) UNRELEASED; urgency=medium
       system-PA version.
     - src/pulsemanager.cpp: add warning message boxes where appropriate.
     - src/pulsemanager.cpp: remove extraneous newlines from debug output.
+    - src/x2goutils.cpp: fix faulty logic in find_binary (): only reset the
+      given path to CWD iff it's actually empty. Not the other way around.
 
  -- X2Go Release Manager <git-admin at x2go.org>  Mon, 19 Sep 2016 09:07:07 +0200
 
diff --git a/src/x2goutils.cpp b/src/x2goutils.cpp
index 25a2b54..45c31df 100644
--- a/src/x2goutils.cpp
+++ b/src/x2goutils.cpp
@@ -298,7 +298,7 @@ QString find_binary (const QString &path, const QString &binary_name) {
     QString cur_path = "";
     QString tmp_path = path;
 
-    if (!(path.isEmpty ())) {
+    if (path.isEmpty ()) {
       tmp_path = "./";
     }
 

--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list