diff --git a/unix/x0vncserver/x0vncserver.cxx b/unix/x0vncserver/x0vncserver.cxx index a815dc6d4a..9652f0155e 100644 --- a/unix/x0vncserver/x0vncserver.cxx +++ b/unix/x0vncserver/x0vncserver.cxx @@ -283,7 +283,7 @@ int main(int argc, char** argv) if (hasSystemdListeners()) rfbport.setParam(-1); - for (int i = 1; i < argc; i++) { + for (int i = 1; i < argc;) { int ret; ret = Configuration::handleParamArg(argc, argv, i);