diff options
author | default <nobody@localhost> | 2024-02-28 15:20:21 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2024-02-28 15:20:21 +0100 |
commit | 33e410301b3b183bb7d1598e8f735a291b185240 (patch) | |
tree | f8fa0e0f5cd4d429a2e66312071267e6720ad599 /mastoapi.c | |
parent | 91207fbe39c97e46efee463686d60343ec9a4da9 (diff) |
mastoapi: check the url before checking.
Diffstat (limited to 'mastoapi.c')
-rw-r--r-- | mastoapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -649,7 +649,7 @@ xs_dict *mastoapi_account(const xs_dict *actor) char *url = xs_dict_get(metadata, name); - if (xs_startswith(url, "https:/" "/")) { + if (!xs_is_null(url) && xs_startswith(url, "https:/" "/")) { xs_number *verified_time = xs_dict_get(val_links, url); if (xs_type(verified_time) == XSTYPE_NUMBER) { time_t t = xs_number_get(verified_time); |