aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-10-28 09:37:02 +0100
committerdefault <nobody@localhost>2024-10-28 09:37:02 +0100
commita0fc1b38eb3a343b06217ff0b2d73f4e8ec86bb7 (patch)
treeddf005de5889bc97c9f9f08a4e36d6a4aabc7ec0 /html.c
parent220f611eac77c720c58786e7b945980602423dcc (diff)
Fixed crash.
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 cfa9a80..93d218c 100644
--- a/html.c
+++ b/html.c
@@ -1944,7 +1944,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
const char *name = xs_dict_get(a, "name");
/* if this image is already in the post content, skip */
- if (xs_str_in(content, href) != -1)
+ if (content && xs_str_in(content, href) != -1)
continue;
if (xs_startswith(type, "image/") || strcmp(type, "Image") == 0) {