]> git.sesse.net Git - vlc/blobdiff - modules/misc/lua/libs/misc.c
Add a directory type parameter to config_GetHomeDir
[vlc] / modules / misc / lua / libs / misc.c
index 7aab9ec9d223921843ac8fc965a9adc3ac6e7491..1bbc1b0aad6a969705fcd1552cb4fca6761cdf4e 100644 (file)
@@ -126,7 +126,9 @@ static int vlclua_userdatadir( lua_State *L )
 
 static int vlclua_homedir( lua_State *L )
 {
-    lua_pushstring( L, config_GetHomeDir() );
+    char *home = config_GetUserDir( VLC_HOME_DIR );
+    lua_pushstring( L, home );
+    free( home );
     return 1;
 }