X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/47e4d2685ab31e71336a7806fdc3dcd2a107f60f..665dfc96f45c47ecfae79f1baa2c29dabe5a2ded:/sbr/mime_type.c diff --git a/sbr/mime_type.c b/sbr/mime_type.c index bcc1c392..379c248d 100644 --- a/sbr/mime_type.c +++ b/sbr/mime_type.c @@ -68,7 +68,7 @@ mime_type(const char *file_name) { if ((p = strrchr(file_name, '.')) != NULL) { for (np = m_defs; np; np = np->n_next) { if (strncasecmp(np->n_name, "mhshow-suffix-", 14) == 0 && - strcasecmp(p, np->n_field ? np->n_field : "") == 0) { + strcasecmp(p, FENDNULL(np->n_field)) == 0) { content_type = strdup(np->n_name + 14); break; }