[X2Go-Commits] [x2goclient] 03/31: src/x2goutils.cpp: ensure that add_to_path () also processes the first value passed.

git-admin at x2go.org git-admin at x2go.org
Sun Mar 5 23:22:21 CET 2017


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

x2go pushed a commit to branch master
in repository x2goclient.

commit 45d0f1bcbf423c57e47c94c7e86af35617d4b2f9
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Thu Feb 23 09:28:32 2017 +0100

    src/x2goutils.cpp: ensure that add_to_path () also processes the first value passed.
    
    Fixes startup problems in MacPorts.
---
 debian/changelog  | 2 ++
 src/x2goutils.cpp | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 10c656e..903522d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -74,6 +74,8 @@ x2goclient (4.1.0.1-0x2go1) UNRELEASED; urgency=medium
       there's no way to query the remote endpoint information. As a result we
       will be unable to open a new socket to the remote endpoint and proxying
       will fail badly.
+    - src/x2goutils.cpp: ensure that add_to_path () also processes the first
+      value passed. Fixes startup problems in MacPorts.
 
  -- X2Go Release Manager <git-admin at x2go.org>  Wed, 22 Feb 2017 07:13:10 +0100
 
diff --git a/src/x2goutils.cpp b/src/x2goutils.cpp
index 7065d98..79c0700 100644
--- a/src/x2goutils.cpp
+++ b/src/x2goutils.cpp
@@ -299,7 +299,7 @@ QString add_to_path (const QString &orig_path, const QStringList &add, const boo
     }
   }
   else {
-    for (int i = (clean_add.size () - 1); i > 0; --i) {
+    for (int i = (clean_add.size () - 1); i >= 0; --i) {
       if (!found[i]) {
         ret.prepend (QString (clean_add[i] + ":"));
       }

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