[X2Go-Commits] [libx2goclient] 11/13: src/x2goclient-openssh-version.c: remove useless assignments to "cont" variable.

git-admin at x2go.org git-admin at x2go.org
Sat Jun 27 14:42:21 CEST 2020


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

x2go pushed a commit to branch master
in repository libx2goclient.

commit 88b8033028be34790d025de199aaca6759c39b38
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat Jun 27 14:36:05 2020 +0200

    src/x2goclient-openssh-version.c: remove useless assignments to "cont" variable.
    
    We don't use or check it later on, so there's no need to change its
    value.
---
 src/x2goclient-openssh-version.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/x2goclient-openssh-version.c b/src/x2goclient-openssh-version.c
index fbdabfd..ed526d7 100644
--- a/src/x2goclient-openssh-version.c
+++ b/src/x2goclient-openssh-version.c
@@ -489,14 +489,12 @@ X2GoClientOpenSSHVersion* x2goclient_openssh_version_fetch_openssh_version (GErr
 
       if (!(ssh_stderr_size_sanitized)) {
         g_set_error_literal (gerr, X2GOCLIENT_OPENSSH_VERSION_ERROR, X2GOCLIENT_OPENSSH_VERSION_ERROR_OPENSSH_VERSION_NO_STDERR, "OpenSSH version command wrote nothing to stderr, this is unexpected. Can't parse version string.");
-        cont = FALSE;
       }
       else {
         ret = x2goclient_openssh_version_new ();
 
         if (!(ret)) {
           g_set_error_literal (gerr, X2GOCLIENT_OPENSSH_VERSION_ERROR, X2GOCLIENT_OPENSSH_VERSION_ERROR_OPENSSH_VERSION_ALLOCATE, "Unable to allocate buffer for OpenSSH version structure - memory issues?");
-          cont = FALSE;
         }
         else {
           /* gerr is supposed to be empty at that point. */

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