diff options
| author | 2023-04-13 18:34:14 +0200 | |
|---|---|---|
| committer | 2023-04-13 18:34:14 +0200 | |
| commit | c66cd2edb52bedcbc8be6a89ee64f146778f5c32 (patch) | |
| tree | 9d8d8fd2b624fe893599809638057e318e5c2790 /data.c | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-c66cd2edb52bedcbc8be6a89ee64f146778f5c32.tar.gz snac2-c66cd2edb52bedcbc8be6a89ee64f146778f5c32.tar.xz snac2-c66cd2edb52bedcbc8be6a89ee64f146778f5c32.zip | |
Fixed crash in notify_get().
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1542,7 +1542,7 @@ void notify_add(snac *snac, const char *type, const char *utype, | |||
| 1542 | xs_dict *notify_get(snac *snac, const char *id) | 1542 | xs_dict *notify_get(snac *snac, const char *id) |
| 1543 | /* gets a notification */ | 1543 | /* gets a notification */ |
| 1544 | { | 1544 | { |
| 1545 | xs *fn = xs_fmt("%s/notify/%s.json", snac->basedir); | 1545 | xs *fn = xs_fmt("%s/notify/%s.json", snac->basedir, id); |
| 1546 | FILE *f; | 1546 | FILE *f; |
| 1547 | xs_dict *out = NULL; | 1547 | xs_dict *out = NULL; |
| 1548 | 1548 | ||