aboutsummaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authorviolette <vi@violette.town>2025-12-19 09:54:50 +0100
committergrunfink <grunfink@comam.es>2025-12-19 09:54:50 +0100
commite233f3f904e64d6ecaffdf68f8532e1587681fe3 (patch)
tree334940d6e1c765a2cd5244385f3445f898cf9473 /mastoapi.c
parentaefdd0169b0170c8c264374474e4eeeab2920cc9 (diff)
Some fixes.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c2
1 files changed, 1 insertions, 1 deletions
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;