aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-06-09 22:27:20 +0200
committerUlrich Sibiller <uli42@gmx.de>2017-06-09 22:27:20 +0200
commit19116a61c98684fc5c0256b65f49462457bb0f5b (patch)
treee767e70c6aeb95b5d13be127f38d850ec0f30abf /nx-X11
parent7fd59fbd1effa4eb54fb338239f22ff8a23d9da6 (diff)
downloadnx-libs-19116a61c98684fc5c0256b65f49462457bb0f5b.tar.gz
nx-libs-19116a61c98684fc5c0256b65f49462457bb0f5b.tar.bz2
nx-libs-19116a61c98684fc5c0256b65f49462457bb0f5b.zip
Args.c: fix sync option parsing
This fixes ArcticaProject/nx-libs#465
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Args.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Args.c b/nx-X11/programs/Xserver/hw/nxagent/Args.c
index 6896d7212..5db7e0110 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Args.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Args.c
@@ -400,10 +400,8 @@ int ddxProcessArgument(int argc, char *argv[], int i)
}
if (!strcmp(argv[i], "-sync")) {
- if (++i < argc) {
- nxagentSynchronize = True;
- return 1;
- }
+ nxagentSynchronize = True;
+ return 1;
}
if (!strcmp(argv[i], "-full")) {