From 3977a12bef880e622c1411a77f74c78d241dd072 Mon Sep 17 00:00:00 2001 From: default Date: Mon, 12 Jun 2023 19:39:15 +0200 Subject: [PATCH] Avoid writing a NULL header in mastoapi_account(). --- mastoapi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mastoapi.c b/mastoapi.c index 661b8dd..db898e9 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -548,6 +548,9 @@ xs_dict *mastoapi_account(const xs_dict *actor) if (xs_type(hd) == XSTYPE_DICT) header = xs_dup(xs_dict_get(hd, "url")); + if (xs_is_null(header)) + header = xs_dup(""); + acct = xs_dict_append(acct, "header", header); acct = xs_dict_append(acct, "header_static", header);