aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-12-31 00:07:15 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-16 00:23:39 +0100
commitcc781ae2edb414c2c591ab578636debc3515ed1d (patch)
tree0c02e1adc0f2aee4e7d0ea2d22974b383bc94d1d
parentd1136ea2fc57e38c94608ad889f70fc3c517055e (diff)
downloadnx-libs-cc781ae2edb414c2c591ab578636debc3515ed1d.tar.gz
nx-libs-cc781ae2edb414c2c591ab578636debc3515ed1d.tar.bz2
nx-libs-cc781ae2edb414c2c591ab578636debc3515ed1d.zip
Screen.c: clarify that characters are compared
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Screen.c4
1 files 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);