aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorviolette <vi@violette.town>2025-12-18 07:58:24 +0100
committergrunfink <grunfink@comam.es>2025-12-18 07:58:24 +0100
commit85ed0eb0d535700a5df837c37f51848811e461a0 (patch)
tree818c80cc48c445b2950796230946c63eca3a3242 /format.c
parente66446a57d79623227353e57cd553cbb42e4ca93 (diff)
Added emoji reactions (contributed by violette).
Diffstat (limited to 'format.c')
-rw-r--r--format.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/format.c b/format.c
index 84c634d..4f93b7b 100644
--- a/format.c
+++ b/format.c
@@ -459,6 +459,9 @@ xs_str *sanitize(const char *content)
char *p;
const char *v;
+ if (!content)
+ return NULL;
+
sl = xs_regex_split(content, "</?[^>]+>");
p = sl;