mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 09:20:06 +01:00
Xephyr: remove a potential crasher
* hw/kdrive/ephyr/hostx.c: (hostx_has_dri): be more defensive.
This commit is contained in:
parent
06c8977966
commit
ab11bad547
1 changed files with 3 additions and 0 deletions
|
|
@ -1328,6 +1328,9 @@ hostx_has_dri (void)
|
|||
int event_base=0, error_base=0 ;
|
||||
Display *dpy=hostx_get_display () ;
|
||||
|
||||
if (!dpy)
|
||||
return FALSE ;
|
||||
|
||||
if (!XF86DRIQueryExtension (dpy,
|
||||
&event_base,
|
||||
&error_base)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue