aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-12-31 00:07:15 +0100
committerUlrich Sibiller <uli42@gmx.de>2021-01-15 18:23:13 +0100
commit599334aff8b7388c455fce50998bba244a85655e (patch)
treef2f06e6e1aeeebb610b966cf5e8ff06c791b39ac
parentdd5d8bc89ca0968a70bba667e8fd1a48817ca41a (diff)
downloadnx-libs-599334aff8b7388c455fce50998bba244a85655e.tar.gz
nx-libs-599334aff8b7388c455fce50998bba244a85655e.tar.bz2
nx-libs-599334aff8b7388c455fce50998bba244a85655e.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 86f88bb7b..d09c14692 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -2514,9 +2514,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);