summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-11-25 08:50:34 +0100
committerdefault <nobody@localhost>2023-11-25 08:50:34 +0100
commitc71047ca023187ea12d8a01a98c99ae6f60bdb25 (patch)
tree080e43d169cf5468697ac809c054c71d86ca18c7 /html.c
parentf4633b9356ff26deb12587bf922db9b82c0e0bda (diff)
Fixed html_note() where cw_text is XSTYPE_NULL.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
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,