From 15b12f45c69751014f7a96f089ba32a76f97d4a6 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 5 Nov 2019 10:39:36 +0100 Subject: scan-build: fix a couple of minor warnings from a scan-build run --- shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shm.c') 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( -- cgit v1.3