sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 59f362196b84d6cf455b574d887ec3e0c3163eb3
parent 89ca6676bedca3580a2db45a2f60f34c136cd3d0
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 31 Mar 2018 12:01:02 -0400

assert(fd != -1);

Thanks @martinetd

Diffstat:
Mclient/pool-buffer.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/pool-buffer.c b/client/pool-buffer.c @@ -57,7 +57,7 @@ static struct pool_buffer *create_buffer(struct wl_shm *shm, char *name; int fd = create_pool_file(size, &name); - assert(fd); + assert(fd != -1); void *data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); struct wl_shm_pool *pool = wl_shm_create_pool(shm, fd, size); buf->buffer = wl_shm_pool_create_buffer(pool, 0,