Don't crash if cut_text cb isn't implemented
parent
86283fd8d1
commit
977f34224c
|
@ -62,7 +62,8 @@ static void vnc_client_got_cut_text(rfbClient* client, const char* text,
|
||||||
struct vnc_client* self = rfbClientGetClientData(client, NULL);
|
struct vnc_client* self = rfbClientGetClientData(client, NULL);
|
||||||
assert(self);
|
assert(self);
|
||||||
|
|
||||||
self->cut_text(self, text, len);
|
if (self->cut_text)
|
||||||
|
self->cut_text(self, text, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct vnc_client* vnc_client_create(void)
|
struct vnc_client* vnc_client_create(void)
|
||||||
|
|
Loading…
Reference in New Issue