From e233f3f904e64d6ecaffdf68f8532e1587681fe3 Mon Sep 17 00:00:00 2001 From: violette Date: Fri, 19 Dec 2025 09:54:50 +0100 Subject: Some fixes. --- mastoapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mastoapi.c') diff --git a/mastoapi.c b/mastoapi.c index 041f37e..d38e902 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -1174,7 +1174,7 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg) /* NOTE: idk when there are no actor, but i encountered that bug. * Probably because of one of my previous attempts. * Keeping this just in case, can remove later */ - const char *me = actor && strcmp(actor, snac->actor) == 0 ? + const char *me = actor && snac && strcmp(actor, snac->actor) == 0 ? xs_stock(XSTYPE_TRUE) : xs_stock(XSTYPE_FALSE); int count = 1; -- cgit v1.2.3