Skip to content

Commit

Permalink
video: waylandmouse: handle mmap error properly
Browse files Browse the repository at this point in the history
Signed-off-by: Ryo Munakata <ryomnktml@gmail.com>
  • Loading branch information
pfpacket committed Sep 9, 2014
1 parent 5f39ea8 commit 7798b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/wayland/SDL_waylandmouse.c
Expand Up @@ -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);
Expand Down

0 comments on commit 7798b4d

Please sign in to comment.