From 29413b32a2b9e7abacefe812f427366c6cc61210 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Tue, 13 Oct 2020 00:17:27 +0200 Subject: Clipboard.c: fix comment position and init array pointer --- nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index 3d33cb931..e316b9bbf 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -95,8 +95,9 @@ typedef struct _SelectionOwner * owner is outside nxagent. */ -/* FIXME: these should also be stored per selection */ -static SelectionOwner *lastSelectionOwner; +static SelectionOwner *lastSelectionOwner = NULL; + +/* FIXME: can this also be stored per selection? */ static XlibAtom serverLastRequestedSelection; #define IS_INTERNAL_OWNER(lsoindex) (lastSelectionOwner[lsoindex].client != NULL) -- cgit v1.2.3