[X2Go-Commits] [libx2goclient] 05/08: src/x2goclient-network-ssh.c: remove duplicated code.

git-admin at x2go.org git-admin at x2go.org
Sat Aug 3 12:36:33 CEST 2019


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

x2go pushed a commit to branch master
in repository libx2goclient.

commit 91db7321f4716eb2f62d0067ed5afa39336585d3
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Wed Jul 31 21:29:01 2019 +0200

    src/x2goclient-network-ssh.c: remove duplicated code.
---
 src/x2goclient-network-ssh.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/x2goclient-network-ssh.c b/src/x2goclient-network-ssh.c
index 768b974..938f88e 100644
--- a/src/x2goclient-network-ssh.c
+++ b/src/x2goclient-network-ssh.c
@@ -200,14 +200,7 @@ static GSocketAddress* x2goclient_network_ssh_parse_sockspec_ip (const GString *
   g_return_val_if_fail (err == NULL || *err == NULL, ret);
 
   /* We're free to sanitize the string now. */
-  GString *work_sockspec = NULL;
-  {
-    gchar *sanitize_sockspec = g_strdup (sockspec->str);
-    g_strstrip (sanitize_sockspec);
-    work_sockspec = g_string_new (g_strstrip (sanitize_sockspec));
-    g_free (sanitize_sockspec);
-    sanitize_sockspec = NULL;
-  }
+  GString *work_sockspec = x2goclient_network_ssh_sanitize_sockspec (sockspec);
 
   gchar *tmp_start = work_sockspec->str,
         *tmp_end = NULL;

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/libx2goclient.git


More information about the x2go-commits mailing list