aboutsummaryrefslogtreecommitdiff
path: root/char32.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 /char32.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 'char32.c')
-rw-r--r--char32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/char32.c b/char32.c
index e25db3f1..97c599d9 100644
--- a/char32.c
+++ b/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);
}