mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
Fixed crash.
This commit is contained in:
parent
f045600c5b
commit
f1d1d5f99a
1 changed files with 2 additions and 1 deletions
3
data.c
3
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;
|
||||
|
|
Loading…
Reference in a new issue