aboutsummaryrefslogtreecommitdiff
path: root/mime.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-09-10 09:43:57 +0000
committerOmar Polo <op@omarpolo.com>2022-09-10 09:43:57 +0000
commitcd5826b8ba3b43ed9802309688ae029c0f5c4081 (patch)
tree6de2abea6c0b82ca7084526815a8715263809254 /mime.c
parentaa9543b9fd1963d86f63fda13addb356f9039c37 (diff)
retire the deprecated `mime' and `map' config options
Diffstat (limited to 'mime.c')
-rw-r--r--mime.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mime.c b/mime.c
index ad338f0..1586cf8 100644
--- a/mime.c
+++ b/mime.c
@@ -82,6 +82,10 @@ load_default_mime(struct mime *mime)
{NULL, NULL}
}, *i;
+ /* don't load the default if `types' was used. */
+ if (mime->len != 0)
+ return 0;
+
for (i = m; i->mime != NULL; ++i) {
if (add_mime(mime, i->mime, i->ext) == -1)
return -1;