[X2Go-Commits] [x2goclient] 20/217: x2goclient.cpp: fix string comparison.

git-admin at x2go.org git-admin at x2go.org
Sat Aug 27 19:24:16 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 e3154e87f6fad98ffb0fa05998f9885ea4bd21e7
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Wed Mar 18 04:39:43 2015 +0100

    x2goclient.cpp: fix string comparison.
---
 debian/changelog   |    1 +
 src/x2goclient.cpp |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index d521737..6dba36b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -72,6 +72,7 @@ x2goclient (4.0.5.2-0x2go1) UNRELEASED; urgency=medium
       UNIX cleanup helper tool is requested. It is necessary to call exec()
       after fork on virtually all operating system, especially on OS X.
     - x2goclient.cpp: fix compile problems introduced with the last commit.
+    - x2goclient.cpp: fix string comparison.
   * debian/control:
     - Maintainer change in package: X2Go Developers <x2go-dev at lists.x2go.org>.
     - Uploaders: add myself. Also, force a rebuild due to the changed
diff --git a/src/x2goclient.cpp b/src/x2goclient.cpp
index 895db0d..eee541f 100644
--- a/src/x2goclient.cpp
+++ b/src/x2goclient.cpp
@@ -101,7 +101,7 @@ int main (int argc, char **argv) {
     /* Make the current argument lowercase. */
     std::transform (cur_arg.begin (), cur_arg.end (), cur_arg.begin (), ::tolower);
 
-    if ((!cur_arg.empty ()) && (cur_arg.compare ("--unixhelper"))) {
+    if ((!cur_arg.empty ()) && (cur_arg.compare ("--unixhelper") == 0)) {
       unix_helper_request = 1;
       break;
     }

--
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