diff options
author | default <nobody@localhost> | 2022-10-02 07:23:27 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-10-02 07:23:27 +0200 |
commit | f1d1d5f99a6054b3730dc4db7f31c8c5b8a1b050 (patch) | |
tree | 9c9077030816e5eca1ff3c42763f8a43f7870559 /data.c | |
parent | f045600c5b30370525945e0ca6f4f23c6843af92 (diff) |
Fixed crash.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |