aboutsummaryrefslogtreecommitdiff
path: root/mime.c
diff options
context:
space:
mode:
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;