Commit d8da3832 authored by Sam Hocevar's avatar Sam Hocevar

* modules/codec/cmml/browser_open.c:

    + Fixed a compilation warning due to a missing return value.
parent 2ec46a08
...@@ -48,20 +48,24 @@ int browser_Open( const char *psz_url ) ...@@ -48,20 +48,24 @@ int browser_Open( const char *psz_url )
#else #else
/* Assume we're on a UNIX of some sort */ /* Assume we're on a UNIX of some sort */
char *psz_open_commandline; char *psz_open_commandline;
int i_ret;
/* Debian uses www-browser */ /* Debian uses www-browser */
psz_open_commandline = strdup( "www-browser" ); psz_open_commandline = strdup( "www-browser" );
xstrcat( psz_open_commandline, psz_url ); xstrcat( psz_open_commandline, psz_url );
i_ret = system( psz_open_commandline );
if( system( psz_open_commandline ) != 0 ) if( i_ret == 0 )
{ {
free( psz_open_commandline ); return 0;
/* Try mozilla */
psz_open_commandline = strdup( "mozilla" );
xstrcat( psz_open_commandline, psz_url );
return system( psz_open_commandline );
} }
free( psz_open_commandline );
/* Try mozilla */
psz_open_commandline = strdup( "mozilla" );
xstrcat( psz_open_commandline, psz_url );
return system( psz_open_commandline );
#endif #endif
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment