commit 9bb08cf
default
·
2023-04-26 15:37:33 +0000 UTC
parent e2ef581
Fixed crash in mastoapi search.
1 files changed,
+1,
-1
+1,
-1
1@@ -1436,7 +1436,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
2 /* reply something only for offset 0; otherwise,
3 apps like Tusky keep asking again and again */
4
5- if (!xs_is_null(q) && strcmp(type, "accounts") == 0) {
6+ if (!xs_is_null(q) && !xs_is_null(type) && strcmp(type, "accounts") == 0) {
7 /* do a webfinger query */
8 char *actor = NULL;
9 char *user = NULL;