Fix two typos from replacing g_file_test with g_access in sokoke
This commit is contained in:
parent
8f0d632ef5
commit
4e25f72768
1 changed files with 2 additions and 2 deletions
|
@ -1287,7 +1287,7 @@ sokoke_find_config_filename (const gchar* folder,
|
|||
while ((config_dir = config_dirs[i++]))
|
||||
{
|
||||
gchar* path = g_build_filename (config_dir, PACKAGE_NAME, folder, filename, NULL);
|
||||
if (g_access (filename, F_OK) == 0)
|
||||
if (g_access (path, F_OK) == 0)
|
||||
return path;
|
||||
g_free (path);
|
||||
}
|
||||
|
@ -1313,7 +1313,7 @@ sokoke_find_data_filename (const gchar* filename)
|
|||
while ((data_dir = data_dirs[i++]))
|
||||
{
|
||||
gchar* path = g_build_filename (data_dir, filename, NULL);
|
||||
if (g_access (filename, F_OK) == 0)
|
||||
if (g_access (path, F_OK) == 0)
|
||||
return path;
|
||||
g_free (path);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue