Skip to content
Permalink
Browse files

video: waylandmouse: handle mmap error properly

Signed-off-by: Ryo Munakata <ryomnktml@gmail.com>
  • Loading branch information
pfpacket committed Sep 9, 2014
1 parent 5f39ea8 commit 7798b4d62a43318a52e520ccf8d81e1b564c1cb0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/wayland/SDL_waylandmouse.c
@@ -126,7 +126,7 @@ create_buffer_from_shm(Wayland_CursorData *d,
MAP_SHARED,
shm_fd,
0);
if (data == MAP_FAILED) {
if (d->shm_data == MAP_FAILED) {
d->shm_data = NULL;
fprintf (stderr, "mmap () failed\n");
close (shm_fd);

0 comments on commit 7798b4d

Please sign in to comment.