Don't set NULL encodings when -e is not set

qemu-extended-key-event
Andri Yngvason 2020-08-07 10:56:28 +00:00
parent f7aab11128
commit 67bd3331e5
1 changed files with 2 additions and 1 deletions

View File

@ -611,7 +611,8 @@ int main(int argc, char* argv[])
goto vnc_setup_failure;
}
vnc_client_set_encodings(vnc, encodings);
if (encodings)
vnc_client_set_encodings(vnc, encodings);
if (quality >= 0)
vnc_client_set_quality_level(vnc, quality);