Skip to content

Fix segfault on drmGetDevices failure

Simon Ser requested to merge github/fork/emersion/fix-segfault-on-error into master

When no DRM devices are detected, drm_info fails with:

drmGetDevices: No such file or directory

And then segfaults. This happens because the drm_info() function returns a NULL pointer on failure but main() doesn't handle it.

Merge request reports

Loading