aboutsummaryrefslogtreecommitdiff
path: root/shm.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-05 09:39:36 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-05 09:39:36 +0000
commit15b12f45c69751014f7a96f089ba32a76f97d4a6 (patch)
tree69db86171691ebf56bc9e4010a666a9161dbec90 /shm.c
parentserver/client: harden reading of initialization data, and make async (diff)
scan-build: fix a couple of minor warnings from a scan-build run
Diffstat (limited to 'shm.c')
-rw-r--r--shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shm.c b/shm.c
index 26e58167..356288bc 100644
--- a/shm.c
+++ b/shm.c
@@ -148,7 +148,7 @@ shm_get_buffer(struct wl_shm *shm, int width, int height, unsigned long cookie)
/* We use the entire pool for our single buffer */
wl_shm_pool_destroy(pool); pool = NULL;
- close(pool_fd); pool_fd = -1;
+ close(pool_fd);
/* One pixman image for each worker thread (do we really need multiple?) */
pix = pixman_image_create_bits_no_clear(