diff options
author | Simon Ser <contact@emersion.fr> | 2021-01-27 21:12:19 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-27 21:12:19 +0100 |
commit | a406f1947978e5db32615aeea095eab6a5bc19b1 (patch) | |
tree | 6dd5f906aacbbc399005b6e183a0b114ca4be4d0 /render | |
parent | 6becc69ec90c2300d974e653ca50d2d33cf94c00 (diff) |
render/egl: fix NULL dereference when using llvmpipe
Fixes: 6becc69ec90c ("render/egl: fail to create wlr_egl on software renderer")
Diffstat (limited to 'render')
-rw-r--r-- | render/egl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/egl.c b/render/egl.c index 2eea387b..8be8e008 100644 --- a/render/egl.c +++ b/render/egl.c @@ -274,7 +274,7 @@ struct wlr_egl *wlr_egl_create(EGLenum platform, void *remote_display, if (check_egl_ext(device_exts_str, "EGL_MESA_device_software")) { const char *allow_software = getenv("WLR_RENDERER_ALLOW_SOFTWARE"); - if (strcmp(allow_software, "1") == 0) { + if (allow_software != NULL && strcmp(allow_software, "1") == 0) { wlr_log(WLR_INFO, "Using software rendering"); } else { wlr_log(WLR_ERROR, "Software rendering detected, please use " |