[X2Go-Commits] [nx-libs] 394/429: Clipboard.c: improve debug output in special case
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 18 09:37:14 CEST 2021
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit ba898dfcde038052c9eb9be043e9d48b18652cca
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Wed Mar 10 10:04:50 2021 +0100
Clipboard.c: improve debug output in special case
This avoids an error message in a special case:
nxagentRemoteToLocalAtom: WARNING failed to get name from remote atom.
---
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 17b14f728..dde5506fa 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -436,7 +436,10 @@ void nxagentDumpClipboardStat(void)
}
fprintf(stderr, "\n");
- fprintf(stderr, " serverLastRequestedSelection [% 4ld][%s]\n", serverLastRequestedSelection, NameForRemAtom(serverLastRequestedSelection));
+ if (serverLastRequestedSelection == -1)
+ fprintf(stderr, " serverLastRequestedSelection [-1](uninitialized)\n");
+ else
+ fprintf(stderr, " serverLastRequestedSelection [% 4ld][%s]\n", serverLastRequestedSelection, NameForRemAtom(serverLastRequestedSelection));
fprintf(stderr, "Compile time settings\n");
#ifdef PRINT_CLIPBOARD_CONTENT_ON_DEBUG
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list