summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-02 07:23:27 +0200
committerdefault <nobody@localhost>2022-10-02 07:23:27 +0200
commitf1d1d5f99a6054b3730dc4db7f31c8c5b8a1b050 (patch)
tree9c9077030816e5eca1ff3c42763f8a43f7870559 /data.c
parentf045600c5b30370525945e0ca6f4f23c6843af92 (diff)
Fixed crash.
Diffstat (limited to 'data.c')
-rw-r--r--data.c3
1 files changed, 2 insertions, 1 deletions
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;