From: Igor Oliveira Date: Sun, 24 Jan 2010 16:26:31 +0000 (-0400) Subject: egl: check if driver_name is null X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=daea9270f877e3f32ef93f71ffa2d27dac4162b4;p=mesa.git egl: check if driver_name is null --- diff --git a/src/gallium/state_trackers/egl/x11/native_x11.c b/src/gallium/state_trackers/egl/x11/native_x11.c index 695ab88010b..dd3c9f8b6ac 100644 --- a/src/gallium/state_trackers/egl/x11/native_x11.c +++ b/src/gallium/state_trackers/egl/x11/native_x11.c @@ -70,7 +70,8 @@ native_create_probe(EGLNativeDisplayType dpy) if (xscr) { if (x11_screen_support(xscr, X11_SCREEN_EXTENSION_DRI2)) { driver_name = x11_screen_probe_dri2(xscr); - nprobe->data = strdup(driver_name); + if (driver_name) + nprobe->data = strdup(driver_name); } x11_screen_destroy(xscr);