aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-03-25 15:33:14 +0100
committerdefault <nobody@localhost>2024-03-25 15:33:14 +0100
commitbc752b7d67d834455eae9eacec16e28585c79c5f (patch)
tree545f468d13dd9a5000178ec364e8c60c4819a188 /data.c
parent5a8c4cac805d349b211e1fb53172702ec77eaa60 (diff)
Emojis are now read from ~/emojis.json.
Diffstat (limited to 'data.c')
-rw-r--r--data.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/data.c b/data.c
index 83e1b15..142fe8c 100644
--- a/data.c
+++ b/data.c
@@ -132,6 +132,9 @@ int srv_open(char *basedir, int auto_upgrade)
}
#endif /* __OpenBSD__ */
+ /* read (and drop) emojis.json, possibly creating it */
+ xs_free(emojis());
+
return ret;
}