Fixed strcmp() logic around console and console-audio parameters.
This commit is contained in:
parent
411c21adbc
commit
89fa8f1680
@ -378,8 +378,8 @@ int guac_client_init(guac_client* client, int argc, char** argv) {
|
|||||||
settings = rdp_inst->settings;
|
settings = rdp_inst->settings;
|
||||||
|
|
||||||
/* Console */
|
/* Console */
|
||||||
settings->console_session = (strcmp(argv[IDX_CONSOLE], "true") != 0);
|
settings->console_session = (strcmp(argv[IDX_CONSOLE], "true") == 0);
|
||||||
settings->console_audio = (strcmp(argv[IDX_CONSOLE_AUDIO], "true") != 0);
|
settings->console_audio = (strcmp(argv[IDX_CONSOLE_AUDIO], "true") == 0);
|
||||||
|
|
||||||
/* --no-auth */
|
/* --no-auth */
|
||||||
settings->authentication = false;
|
settings->authentication = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user