aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-01-02 21:11:56 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-01-05 21:44:12 +0100
commit4c8568caa62a83a9e0bf3aa3f5566c7dd2f8062f (patch)
treeee10e331dab442ba513894c07acc393ee0b393fb /nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
parentbbe2c2ab97b9882738b9ea985b5e1a3f86006999 (diff)
downloadnx-libs-4c8568caa62a83a9e0bf3aa3f5566c7dd2f8062f.tar.gz
nx-libs-4c8568caa62a83a9e0bf3aa3f5566c7dd2f8062f.tar.bz2
nx-libs-4c8568caa62a83a9e0bf3aa3f5566c7dd2f8062f.zip
Keyboard.c: use "\0" instead of "0"
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Keyboard.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
index 756613ab1..d5aae2eae 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -584,9 +584,9 @@ XkbError:
(strcmp(nxagentKeyboard, "query") != 0) &&
(strcmp(nxagentKeyboard, "clone") != 0))
{
- 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)
{
ErrorF("Warning: Wrong keyboard type: %s.\n", nxagentKeyboard);
goto XkbError;