Fixed crash in notify_get().

This commit is contained in:
default 2023-04-13 18:34:14 +02:00
parent a6d664aa5c
commit c66cd2edb5

2
data.c
View file

@ -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;