Add debugging information
This commit is contained in:
parent
75189b97e1
commit
d6f69fc2f1
|
@ -241,7 +241,13 @@ MimeHandler * mime_get_handler(Mime * mime, char const * type,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if((program = config_get(mime->config, type, action)) != NULL)
|
if((program = config_get(mime->config, type, action)) != NULL)
|
||||||
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
|
fprintf(stderr, "DEBUG: %s() => \"%s\"\n", __func__, program);
|
||||||
|
#endif
|
||||||
return program;
|
return program;
|
||||||
|
}
|
||||||
|
/* generic fallback */
|
||||||
if((p = string_find(type, "/")) == NULL || *(++p) == '\0'
|
if((p = string_find(type, "/")) == NULL || *(++p) == '\0'
|
||||||
|| (p = string_new(type)) == NULL)
|
|| (p = string_new(type)) == NULL)
|
||||||
/* XXX the error may not be reported */
|
/* XXX the error may not be reported */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user