break;
if ((strcmp (ent, ".") == 0) || (strcmp (ent, "..") == 0))
+ {
+ free( ent );
continue;
+ }
char path[strlen (psz_dirname) + strlen (ent) + 2];
sprintf (path, "%s"DIR_SEP"%s", psz_dirname, ent);
{
struct stat st;
- int fd = utf8_open (psz_path, O_RDONLY, 0);
+ int fd = utf8_open (psz_path, O_RDONLY);
if (fd == -1)
goto error;
goto error;
}
- char *userdir = config_GetUserDataDir ();
+ char *userdir = config_GetDataDir ( VLC_DATA_DIR );
if (userdir != NULL)
{
char path[strlen (userdir) + sizeof ("/ssl/private")];