[X2Go-Commits] [nx-libs] 197/429: Screen.c: clarify that characters are compared

git-admin at x2go.org git-admin at x2go.org
Mon Oct 18 09:36:30 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 cc781ae2edb414c2c591ab578636debc3515ed1d
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Thu Dec 31 00:07:15 2020 +0100

    Screen.c: clarify that characters are compared
---
 nx-X11/programs/Xserver/hw/nxagent/Screen.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
index cff0eb76a..173d2fb82 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -2530,9 +2530,9 @@ int nxagentShadowInit(ScreenPtr pScreen, WindowPtr pWin)
   if (nxagentKeyboard != NULL)
   {
     int i;
-    for (i = 0; nxagentKeyboard[i] != '/' && nxagentKeyboard[i] != 0; i++);
+    for (i = 0; nxagentKeyboard[i] != '/' && nxagentKeyboard[i] != '\0'; i++);
 
-    if(nxagentKeyboard[i] == 0 || nxagentKeyboard[i + 1] == 0 || i == 0)
+    if(nxagentKeyboard[i] == '\0' || nxagentKeyboard[i + 1] == '\0' || i == 0)
     {
       #ifdef WARNING
       fprintf(stderr,"WARNING! Wrong keyboard type: %s.\n", nxagentKeyboard);

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