From f1d1d5f99a6054b3730dc4db7f31c8c5b8a1b050 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 2 Oct 2022 07:23:27 +0200 Subject: [PATCH] Fixed crash. --- data.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data.c b/data.c index 4ff5a84..5de26c1 100644 --- a/data.c +++ b/data.c @@ -825,7 +825,8 @@ int actor_get(snac *snac, char *actor, d_char **data) fclose(f); - *data = xs_json_loads(j); + if (data) + *data = xs_json_loads(j); } else status = 500;