aboutsummaryrefslogtreecommitdiff
path: root/shm.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2024-01-25 07:03:50 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2024-01-25 07:03:50 +0000
commit91b22ae21acd0b3171814b47b0dead027f8da779 (patch)
tree6504247289226858803cded93ffff0dd8aafcad0 /shm.c
parentwayland: 'mode' is unused when LOG_ENABLE_DBG is not set (diff)
Replace unchecked allocations with calls to xmalloc.h functions
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 171459f6..87bd33a7 100644
--- a/shm.c
+++ b/shm.c
@@ -489,7 +489,7 @@ get_new_buffers(struct buffer_chain *chain, size_t count,
else
tll_push_front(chain->bufs, buf);
- buf->public.dirty = malloc(
+ buf->public.dirty = xmalloc(
chain->pix_instances * sizeof(buf->public.dirty[0]));
for (size_t j = 0; j < chain->pix_instances; j++)