diff options
author | default <nobody@localhost> | 2023-06-12 19:39:15 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-06-12 19:39:15 +0200 |
commit | 3977a12bef880e622c1411a77f74c78d241dd072 (patch) | |
tree | fa368c48b0bb81c13f5e5fc0c6ff4b5134771f88 /mastoapi.c | |
parent | 6f72a195b49a8b0be996fb696819a8e8ea030047 (diff) |
Avoid writing a NULL header in mastoapi_account().
Diffstat (limited to 'mastoapi.c')
-rw-r--r-- | mastoapi.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |