mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-23 20:20:52 +02:00
ephyr: xcb_connect returns an error, not NULL
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
4a251f5883
commit
c8c5105c1d
1 changed files with 2 additions and 2 deletions
|
|
@ -304,8 +304,8 @@ hostx_init(void)
|
|||
| XCB_EVENT_MASK_STRUCTURE_NOTIFY;
|
||||
|
||||
EPHYR_DBG("mark");
|
||||
|
||||
if ((HostX.conn = xcb_connect(NULL, &HostX.screen)) == NULL) {
|
||||
HostX.conn = xcb_connect(NULL, &HostX.screen);
|
||||
if (xcb_connection_has_error(HostX.conn)) {
|
||||
fprintf(stderr, "\nXephyr cannot open host display. Is DISPLAY set?\n");
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue