[X2Go-Commits] [libx2goclient] 38/132: src/x2goclient-openssh-version.c: fix warning for assignment-in-if-clause.
git-admin at x2go.org
git-admin at x2go.org
Fri Dec 3 15:26:30 CET 2021
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository libx2goclient.
commit 7d02835364723e8c106d3ca9cdb45c930394b24e
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sat Mar 20 06:49:12 2021 +0100
src/x2goclient-openssh-version.c: fix warning for assignment-in-if-clause.
---
src/x2goclient-openssh-version.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/x2goclient-openssh-version.c b/src/x2goclient-openssh-version.c
index e383e48..fd8b785 100644
--- a/src/x2goclient-openssh-version.c
+++ b/src/x2goclient-openssh-version.c
@@ -138,7 +138,7 @@ _Bool x2goclient_openssh_version_parse (X2GoClientOpenSSHVersion * const openssh
const gchar *newline = NULL;
gchar *version_string_work = NULL;
- if (newline = g_strstr_len (version_string, -1, "\n")) {
+ if ((newline = g_strstr_len (version_string, -1, "\n"))) {
g_log (NULL, G_LOG_LEVEL_INFO, "Passed version string contains at least one newline, truncating string to first line.");
version_string_work = g_strndup (version_string, (newline - version_string));
}
--
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