Fix crash on start when connection fails

qemu-extended-key-event
Andri Yngvason 2020-07-10 17:14:17 +00:00
parent b947be5a19
commit da1ad20dcd
1 changed files with 2 additions and 2 deletions

View File

@ -469,11 +469,11 @@ static rfbClient* rfb_client_create(int* argc, char* argv[])
if (rfb_format_from_wl_shm_format(&cl->format, wl_shm_format) < 0) {
fprintf(stderr, "Unsupported pixel format\n");
goto failure;
return NULL;
}
if (!rfbInitClient(cl, argc, argv))
goto failure;
return NULL;
int fd = cl->sock;