commit 3977a12

default  ·  2023-06-12 17:39:15 +0000 UTC
parent 6f72a19
Avoid writing a NULL header in mastoapi_account().
1 files changed,  +3, -0
+3, -0
 1@@ -548,6 +548,9 @@ xs_dict *mastoapi_account(const xs_dict *actor)
 2     if (xs_type(hd) == XSTYPE_DICT)
 3         header = xs_dup(xs_dict_get(hd, "url"));
 4 
 5+    if (xs_is_null(header))
 6+        header = xs_dup("");
 7+
 8     acct = xs_dict_append(acct, "header", header);
 9     acct = xs_dict_append(acct, "header_static", header);
10