Skip to content

Commit

Permalink
Merge pull request #160 from al42and/fix-buffer_release_thread-read
Browse files Browse the repository at this point in the history
Fix read return value check in buffer_release_thread
  • Loading branch information
kbrenneman authored Jan 14, 2025
2 parents 0c6f823 + 8309514 commit 26ba0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wayland-eglsurface.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ buffer_release_thread(void *args)
}

if (pfds[1].revents & POLLIN) {
if (read(pfds[1].fd, &cmd, sizeof(cmd) != sizeof(cmd))) {
if (read(pfds[1].fd, &cmd, sizeof(cmd)) != sizeof(cmd)) {
/* Reading an event from the app side failed. Bail. */
wl_display_cancel_read(wlDpy);
return NULL;
Expand Down

0 comments on commit 26ba0e3

Please sign in to comment.