mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
Replace unchecked allocations with calls to xmalloc.h functions
This commit is contained in:
parent
43e27a8843
commit
91b22ae21a
6 changed files with 7 additions and 7 deletions
4
char32.c
4
char32.c
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue