pipe-loader: check that the pointer to driconf_xml isn't NULL
[mesa.git] / src / gallium / auxiliary / pipe-loader / pipe_loader_drm.c
index 2e1bff4c233caf8b2efa658917c3354bb0b98483..7d90285a484df192490e22647b8c1030aae18c49 100644 (file)
@@ -331,7 +331,7 @@ pipe_loader_drm_get_driinfo_xml(const char *driver_name)
    const struct drm_driver_descriptor *dd =
       get_driver_descriptor(driver_name, &lib);
 
-   if (dd && dd->driconf_xml)
+   if (dd && dd->driconf_xml && *dd->driconf_xml)
       xml = strdup(*dd->driconf_xml);
 
    if (lib)