static int vlclua_url_parse( lua_State *L )
{
const char *psz_url = luaL_checkstring( L, 1 );
- const char *psz_option = luaL_optstring( L, 2, NULL );
vlc_url_t url;
- vlc_UrlParse( &url, psz_url, psz_option?*psz_option:0 );
+ vlc_UrlParse( &url, psz_url );
lua_newtable( L );
lua_pushstring( L, url.psz_protocol );