Commit d5ac6c4c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

lua: don't call directly config_GetLibDir

It is not necessary, because it is only de-facto enabled on Linux,
where config_GetDataDir will call config_GetLibDir anyway
parent 5c2c82ed
......@@ -214,17 +214,6 @@ int vlclua_dir_list( const char *luadirname, char ***pppsz_dir_list )
i++;
free( datadir );
#if !(defined(__APPLE__) || defined(_WIN32))
char *psz_libpath = config_GetLibDir();
if( likely(psz_libpath != NULL) )
{
if( likely(asprintf( &ppsz_dir_list[i], "%s"DIR_SEP"lua"DIR_SEP"%s",
psz_libpath, luadirname ) != -1) )
i++;
free( psz_libpath );
}
#endif
char *psz_datapath = config_GetDataDir();
if( likely(psz_datapath != NULL) )
{
......
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