mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Print 'unknown' if 'mimedb -d' fails
darcs-hash:20070524171053-ac50b-c9374e0da7f4cf1458a19d9234e4752ae156e37e.gz
This commit is contained in:
parent
c40eb8a716
commit
778aa1c304
1 changed files with 3 additions and 0 deletions
3
mimedb.c
3
mimedb.c
|
@ -1345,6 +1345,9 @@ int main (int argc, char *argv[])
|
||||||
case DESCRIPTION:
|
case DESCRIPTION:
|
||||||
{
|
{
|
||||||
output = get_description( mimetype );
|
output = get_description( mimetype );
|
||||||
|
if( !output )
|
||||||
|
output = strdup( _("Unknown") );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ACTION:
|
case ACTION:
|
||||||
|
|
Loading…
Reference in a new issue