GUACAMOLE-221: Correct faulty double-increment of args (should advance ONE at a time).
This commit is contained in:
parent
aa3a9cde6c
commit
0cdc51acd1
@ -165,7 +165,7 @@ static int guac_argv_is_received(const char** args) {
|
||||
|
||||
/* Fail immediately for any matching non-received arguments */
|
||||
for (const char** arg = args; *arg != NULL; arg++) {
|
||||
if (strcmp(state->name, *(arg++)) == 0)
|
||||
if (strcmp(state->name, *arg) == 0)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user