From 778aa1c3042e6477a4b36dbde470c121798a331a Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 25 May 2007 03:10:53 +1000 Subject: [PATCH] Print 'unknown' if 'mimedb -d' fails darcs-hash:20070524171053-ac50b-c9374e0da7f4cf1458a19d9234e4752ae156e37e.gz --- mimedb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mimedb.c b/mimedb.c index 51b8e485e..76466f93d 100644 --- a/mimedb.c +++ b/mimedb.c @@ -1345,6 +1345,9 @@ int main (int argc, char *argv[]) case DESCRIPTION: { output = get_description( mimetype ); + if( !output ) + output = strdup( _("Unknown") ); + break; } case ACTION: