Wayland: avoid NULL-pointer error after call to wl_display_get_protocol_error()
Backported from master: 0e6c61e6fc
This commit is contained in:
parent
3b6c45125c
commit
767e159ca2
@ -1358,7 +1358,8 @@ static void wayland_socket_callback(int fd, struct wl_display *display) {
|
||||
if (err == EPROTO) {
|
||||
const struct wl_interface *interface;
|
||||
int code = wl_display_get_protocol_error(display, &interface, NULL);
|
||||
Fl::fatal("Fatal error no %d in Wayland protocol: %s", code, interface->name);
|
||||
Fl::fatal("Fatal error no %d in Wayland protocol: %s", code,
|
||||
(interface ? interface->name : "unknown") );
|
||||
} else {
|
||||
Fl::fatal("Fatal error while communicating with the Wayland server: %s",
|
||||
strerror(errno));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user