fix some allocation failures

This commit is contained in:
Wim Taymans 2026-05-04 14:18:31 +02:00
parent 8cf1164eb6
commit 6539c2bf8c
2 changed files with 13 additions and 4 deletions

View file

@ -48,6 +48,8 @@ static struct card *ensure_card(uint32_t index, bool ucm, bool ucm_split)
return c;
c = calloc(1, sizeof(*c));
if (c == NULL)
return NULL;
c->ref = 1;
c->index = index;