Replace unchecked allocations with calls to xmalloc.h functions

This commit is contained in:
Craig Barnes 2024-01-25 07:03:50 +00:00
parent 43e27a8843
commit 91b22ae21a
6 changed files with 7 additions and 7 deletions

View file

@ -129,11 +129,11 @@ UNITTEST
UNITTEST
{
char32_t *c = c32dup(U"foobar");
char32_t *c = xc32dup(U"foobar");
xassert(c32cmp(c, U"foobar") == 0);
free(c);
c = c32dup(U"");
c = xc32dup(U"");
xassert(c32cmp(c, U"") == 0);
free(c);
}