From c71047ca023187ea12d8a01a98c99ae6f60bdb25 Mon Sep 17 00:00:00 2001 From: default Date: Sat, 25 Nov 2023 08:50:34 +0100 Subject: [PATCH] Fixed html_note() where cw_text is XSTYPE_NULL. --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.c b/html.c index cc2bb28..acda93d 100644 --- a/html.c +++ b/html.c @@ -276,7 +276,7 @@ xs_html *html_note(snac *user, char *summary, xs_html_attr("type", "text"), xs_html_attr("name", "summary"), xs_html_attr("placeholder", L("Sensitive content description")), - xs_html_attr("value", cw_text)))))); + xs_html_attr("value", xs_is_null(cw_text) ? "" : cw_text)))))); if (actor_id) xs_html_add(form,