mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Another attempt to make mimedb.cpp compile on Linux
This commit is contained in:
parent
4b6c6c59b5
commit
5ecd350311
@ -678,8 +678,7 @@ static char *get_action( const char *mimetype )
|
|||||||
{
|
{
|
||||||
char *res=0;
|
char *res=0;
|
||||||
|
|
||||||
const char *launcher;
|
const char *launcher, *end;
|
||||||
char *end;
|
|
||||||
string_list_t mime_filenames;
|
string_list_t mime_filenames;
|
||||||
|
|
||||||
const char *launcher_str = NULL;
|
const char *launcher_str = NULL;
|
||||||
@ -741,8 +740,8 @@ static char *get_action( const char *mimetype )
|
|||||||
/* Skip the = */
|
/* Skip the = */
|
||||||
launcher++;
|
launcher++;
|
||||||
|
|
||||||
/* Make one we can change */
|
/* Make one we can change */
|
||||||
std::string mut_launcher = launcher;
|
std::string mut_launcher = launcher;
|
||||||
|
|
||||||
/* Only use first launcher */
|
/* Only use first launcher */
|
||||||
end = strchr( launcher, ';' );
|
end = strchr( launcher, ';' );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user