[X2Go-Commits] [nx-libs] 52/108: Clipboard.c: Code optimization (missing else)

git-admin at x2go.org git-admin at x2go.org
Fri Nov 9 20:35:45 CET 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository nx-libs.

commit 9a5f519a02d63700aaa742e50ddb5ba67ca7d2b4
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Wed Oct 10 00:21:48 2018 +0200

    Clipboard.c: Code optimization (missing else)
---
 nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 456da35..7c63281 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -504,8 +504,7 @@ FIXME: Do we need this?
                                 1);
       eventSelection.property = X->xselectionrequest.property;
     }
-
-    if (X->xselectionrequest.target == nxagentTimestampAtom)
+    else if (X->xselectionrequest.target == nxagentTimestampAtom)
     {
       while ((i < NumCurrentSelections) &&
                 lastSelectionOwner[i].selection != X->xselectionrequest.selection) i++;

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