aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-11-17 23:28:53 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-01-05 23:36:02 +0100
commit509ae051b2fdb94e587ef8360b2e5985f9c1abc2 (patch)
tree17679ea9f12351b664b083c7ec0ffdd04e9e77b2 /nx-X11
parenteb51bcb6da690f15871a6d71a3d727d69088c449 (diff)
downloadnx-libs-509ae051b2fdb94e587ef8360b2e5985f9c1abc2.tar.gz
nx-libs-509ae051b2fdb94e587ef8360b2e5985f9c1abc2.tar.bz2
nx-libs-509ae051b2fdb94e587ef8360b2e5985f9c1abc2.zip
Clipboard.c: check pointer before usage
The code also worked with pWindow being NULL but it did some unnecessary stuff.
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 4e119d806..5abb52f94 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -576,7 +576,7 @@ void nxagentClearClipboard(ClientPtr pClient, WindowPtr pWindow)
}
}
- if (pWindow == lastClientWindowPtr)
+ if (pWindow && pWindow == lastClientWindowPtr)
{
lastClientWindowPtr = NULL;
SetClientSelectionStage(None);