summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2018-11-28 18:30:36 +0100
committerNicolai Hähnle <[email protected]>2018-11-28 18:30:36 +0100
commitc02390f8fcd367c7350db568feabb2f062efca14 (patch)
tree4ed29e62bd49f1415c44613ab881a769f9e2cdcb /src/egl/drivers/dri2
parenteb94b6bd5c99ef9540f16d1ea8d19c3ac54aed84 (diff)
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")
Diffstat (limited to 'src/egl/drivers/dri2')
-rw-r--r--src/egl/drivers/dri2/platform_wayland.c4
1 files changed, 2 insertions, 2 deletions
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;
}