[Xfce4-commits] <midori:master> Fix two typos from replacing g_file_test with g_access in sokoke
Christian Dywan
noreply at xfce.org
Mon Dec 21 18:28:02 CET 2009
Updating branch refs/heads/master
to 4e25f72768ef5dcebbefccf7281e358dc2c1543b (commit)
from 8f0d632ef5c95f81f5c02078e6969ff4b28273a5 (commit)
commit 4e25f72768ef5dcebbefccf7281e358dc2c1543b
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Dec 21 16:17:35 2009 +0100
Fix two typos from replacing g_file_test with g_access in sokoke
midori/sokoke.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/midori/sokoke.c b/midori/sokoke.c
index d6377ac..b734cde 100644
--- a/midori/sokoke.c
+++ b/midori/sokoke.c
@@ -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);
}
More information about the Xfce4-commits
mailing list