From: Nicolai Hähnle Date: Wed, 28 Nov 2018 17:30:36 +0000 (+0100) Subject: egl/wayland: rather obvious build fix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c02390f8fcd367c7350db568feabb2f062efca14;p=mesa.git egl/wayland: rather obvious build fix Fixes: ce74a7bb8de7 ("egl/wayland: plug memory leak in drm_handle_device()") Fixes: c59d3aa4b9bc ("egl/wayland: bail out when drmGetMagic fails") --- diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 3254ed91209..34e09d7ec16 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -1128,7 +1128,7 @@ drm_handle_device(void *data, struct wl_drm *drm, const char *device) _eglLog(_EGL_WARNING, "wayland-egl: could not open %s (%s)", dri2_dpy->device_name, strerror(errno)); free(dri2_dpy->device_name); - dri2_dpy->device_name = NULL: + dri2_dpy->device_name = NULL; return; } @@ -1139,7 +1139,7 @@ drm_handle_device(void *data, struct wl_drm *drm, const char *device) close(dri2_dpy->fd); dri2_dpy->fd = -1; free(dri2_dpy->device_name); - dri2_dpy->device_name = NULL: + dri2_dpy->device_name = NULL; _eglLog(_EGL_WARNING, "wayland-egl: drmGetMagic failed"); return; }