[X2Go-Commits] [x2goclient] 196/276: 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
Sat Dec 31 01:35:21 CET 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 403a2949e172d293397ab31a5953812bf2349387
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 87aa997..c945b3d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -335,6 +335,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.
 
   [ Bernard Cafarelli ]
   * New upstream version (4.0.5.3):
diff --git a/src/x2goutils.cpp b/src/x2goutils.cpp
index 99739e2..74b2918 100644
--- a/src/x2goutils.cpp
+++ b/src/x2goutils.cpp
@@ -303,7 +303,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