[X2Go-Commits] [libx2goclient] 39/132: src/x2goclient-openssh-version.c: fix zero-length format string warning.

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 bfe1058082f1a2cb68e6c32bb759bb5764ba65c8
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat Mar 20 06:49:32 2021 +0100

    src/x2goclient-openssh-version.c: fix zero-length format string warning.
---
 src/x2goclient-openssh-version.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/x2goclient-openssh-version.c b/src/x2goclient-openssh-version.c
index fd8b785..109184a 100644
--- a/src/x2goclient-openssh-version.c
+++ b/src/x2goclient-openssh-version.c
@@ -573,7 +573,8 @@ X2GoClientOpenSSHVersion* x2goclient_openssh_version_fetch_openssh_version (GErr
          * output more readable.
          */
         if (((sizeof (ssh_std_strs) / sizeof (*ssh_std_strs)) - 1) != i) {
-          g_log (NULL, G_LOG_LEVEL_DEBUG, "");
+          /* Also, silence warning about zero-length format. Meh. */
+          g_log (NULL, G_LOG_LEVEL_DEBUG, "%s", "");
         }
       }
 

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