mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
mimedb: Search for exact mime type match in search_ini.
This commit is contained in:
parent
cf0850edfd
commit
6a5d6471c5
1 changed files with 2 additions and 2 deletions
4
mimedb.c
4
mimedb.c
|
@ -214,7 +214,7 @@ static char * search_ini( const char *filename, const char *match )
|
||||||
buf[0]=0;
|
buf[0]=0;
|
||||||
done = 1;
|
done = 1;
|
||||||
}
|
}
|
||||||
else if( strncmp( buf, match,len )==0)
|
else if( strncmp( buf, match, len ) == 0 && buf[len] == '=' )
|
||||||
{
|
{
|
||||||
done=1;
|
done=1;
|
||||||
}
|
}
|
||||||
|
@ -721,7 +721,7 @@ static char *get_action( const char *mimetype )
|
||||||
|
|
||||||
free( launcher_full );
|
free( launcher_full );
|
||||||
|
|
||||||
launcher_command_str = search_ini( launcher_filename, "Exec=" );
|
launcher_command_str = search_ini( launcher_filename, "Exec" );
|
||||||
|
|
||||||
if( !launcher_command_str )
|
if( !launcher_command_str )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue