aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-08-08 21:17:37 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-09-29 17:44:08 +0200
commit1c36e49ad0d90e47ae3e603f74119b6ba8c15f01 (patch)
tree83a71b76b1e1dee4937129272cc7e7f415ac9b55 /nx-X11/programs
parentbf87f8bbe9ad711548d51d2512bcd3ecef275b4f (diff)
downloadnx-libs-1c36e49ad0d90e47ae3e603f74119b6ba8c15f01.tar.gz
nx-libs-1c36e49ad0d90e47ae3e603f74119b6ba8c15f01.tar.bz2
nx-libs-1c36e49ad0d90e47ae3e603f74119b6ba8c15f01.zip
Clipboard.c: drop unneeded return code
Diffstat (limited to 'nx-X11/programs')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 83175b22b..95bbdd441 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1313,15 +1313,17 @@ void nxagentNotifySelection(XEvent *X)
}
else
{
- result = XChangeProperty(nxagentDisplay,
- lastServerRequestor,
- lastServerProperty,
- lastServerTarget,
- 8,
- PropModeReplace,
- pszReturnData,
- ulReturnItems);
/* Fill the property on the initial requestor with the requested data */
+ /* The XChangeProperty source code reveals it will always
+ return 1, no matter what, so no need to check the result */
+ XChangeProperty(nxagentDisplay,
+ lastServerRequestor,
+ lastServerProperty,
+ lastServerTarget,
+ 8,
+ PropModeReplace,
+ pszReturnData,
+ ulReturnItems);
#ifdef DEBUG
{