mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-25 16:53:37 +00:00
Fixed crash in notify_get().
This commit is contained in:
parent
a6d664aa5c
commit
c66cd2edb5
1 changed files with 1 additions and 1 deletions
2
data.c
2
data.c
|
@ -1542,7 +1542,7 @@ void notify_add(snac *snac, const char *type, const char *utype,
|
|||
xs_dict *notify_get(snac *snac, const char *id)
|
||||
/* gets a notification */
|
||||
{
|
||||
xs *fn = xs_fmt("%s/notify/%s.json", snac->basedir);
|
||||
xs *fn = xs_fmt("%s/notify/%s.json", snac->basedir, id);
|
||||
FILE *f;
|
||||
xs_dict *out = NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue