From 67bd3331e50826a0bf1eb12c7e82b09f2129273e Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Fri, 7 Aug 2020 10:56:28 +0000 Subject: [PATCH] Don't set NULL encodings when -e is not set --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 5322cc6..8eb4695 100644 --- a/src/main.c +++ b/src/main.c @@ -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);