aboutsummaryrefslogtreecommitdiff
path: root/lib/unicode/string
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unicode/string')
-rw-r--r--lib/unicode/string/u8casefold.c2
-rw-r--r--lib/unicode/string/u8lower.c2
-rw-r--r--lib/unicode/string/u8title.c2
-rw-r--r--lib/unicode/string/u8upper.c2
4 files changed, 0 insertions, 8 deletions
diff --git a/lib/unicode/string/u8casefold.c b/lib/unicode/string/u8casefold.c
index eff1e48..b4afe50 100644
--- a/lib/unicode/string/u8casefold.c
+++ b/lib/unicode/string/u8casefold.c
@@ -20,8 +20,6 @@ u8casefold(size_t *dstn, struct u8view sv, enum caseflags flags, alloc_fn alloc,
}
char8_t *dst = alloc(alloc_ctx, nullptr, 0, bufsz, alignof(char8_t));
- if (dst == nullptr)
- return nullptr;
rune ch;
size_t n = 0;
diff --git a/lib/unicode/string/u8lower.c b/lib/unicode/string/u8lower.c
index d5eb58c..45309b6 100644
--- a/lib/unicode/string/u8lower.c
+++ b/lib/unicode/string/u8lower.c
@@ -47,8 +47,6 @@ u8lower(size_t *dstn, struct u8view sv, enum caseflags flags, alloc_fn alloc,
}
char8_t *dst = alloc(alloc_ctx, nullptr, 0, bufsz, alignof(char8_t));
- if (dst == nullptr)
- return nullptr;
while (u8next(&ch, &sv)) {
rune next = 0;
diff --git a/lib/unicode/string/u8title.c b/lib/unicode/string/u8title.c
index 0c3620e..5710920 100644
--- a/lib/unicode/string/u8title.c
+++ b/lib/unicode/string/u8title.c
@@ -53,8 +53,6 @@ u8title(size_t *dstn, struct u8view sv, enum caseflags flags, alloc_fn alloc,
}
char8_t *dst = alloc(alloc_ctx, nullptr, 0, bufsz, alignof(char8_t));
- if (dst == nullptr)
- return nullptr;
while (u8next(&ch, &sv)) {
if (sv.p > word.p + word.len) {
diff --git a/lib/unicode/string/u8upper.c b/lib/unicode/string/u8upper.c
index df25ee7..91ae679 100644
--- a/lib/unicode/string/u8upper.c
+++ b/lib/unicode/string/u8upper.c
@@ -26,8 +26,6 @@ u8upper(size_t *dstn, struct u8view sv, enum caseflags flags, alloc_fn alloc,
}
char8_t *dst = alloc(alloc_ctx, nullptr, 0, bufsz, alignof(char8_t));
- if (dst == nullptr)
- return nullptr;
rune ch;
size_t n = 0;