summaryrefslogtreecommitdiff
path: root/xs_mime.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-08-17 18:06:36 +0200
committerdefault <nobody@localhost>2023-08-17 18:06:36 +0200
commit93bdf79eb69d79803a091e2d6583772b40e41f44 (patch)
treeb4cc7299ada89eb008ea287de3afd0a1ae128a30 /xs_mime.h
parent6ede6497ad2a63e5ff2b57abba827d0da469f923 (diff)
mastoapi: in instance, return the list of supported mime types from the internal list.
Diffstat (limited to 'xs_mime.h')
-rw-r--r--xs_mime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs_mime.h b/xs_mime.h
index 2c8eaa9..cab341c 100644
--- a/xs_mime.h
+++ b/xs_mime.h
@@ -56,7 +56,7 @@ const char *xs_mime_by_ext(const char *file)
const char **p = xs_mime_types;
xs *uext = xs_tolower_i(xs_dup(ext + 1));
- while (**p) {
+ while (*p) {
int c;
if ((c = strcmp(*p, uext)) == 0)