diff options
| author | 2023-04-26 17:37:33 +0200 | |
|---|---|---|
| committer | 2023-04-26 17:37:33 +0200 | |
| commit | 9bb08cfd51f670acd25c445abd1e7fd759da86e1 (patch) | |
| tree | ed54fd6337c7945591cebb63f7ece3e33952a674 | |
| parent | Update lastlog.txt everytime a Bearer token is validated. (diff) | |
| download | penes-snac2-9bb08cfd51f670acd25c445abd1e7fd759da86e1.tar.gz penes-snac2-9bb08cfd51f670acd25c445abd1e7fd759da86e1.tar.xz penes-snac2-9bb08cfd51f670acd25c445abd1e7fd759da86e1.zip | |
Fixed crash in mastoapi search.
| -rw-r--r-- | mastoapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1436,7 +1436,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1436 | /* reply something only for offset 0; otherwise, | 1436 | /* reply something only for offset 0; otherwise, |
| 1437 | apps like Tusky keep asking again and again */ | 1437 | apps like Tusky keep asking again and again */ |
| 1438 | 1438 | ||
| 1439 | if (!xs_is_null(q) && strcmp(type, "accounts") == 0) { | 1439 | if (!xs_is_null(q) && !xs_is_null(type) && strcmp(type, "accounts") == 0) { |
| 1440 | /* do a webfinger query */ | 1440 | /* do a webfinger query */ |
| 1441 | char *actor = NULL; | 1441 | char *actor = NULL; |
| 1442 | char *user = NULL; | 1442 | char *user = NULL; |