summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2011-05-29 19:12:36 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2011-05-29 19:12:36 +0200
commit960c477148cf832f79e89a4cdf9f3ce3389c7b06 (patch)
tree6fd3f2d588c996f3419dee93d603e718d127d0a9 /src
parent75bb13e531654a561dc7baa2f2bc594aa4a8fc52 (diff)
downloadcataract-960c477148cf832f79e89a4cdf9f3ce3389c7b06.tar.xz
setup: Fix wrong access() test
Diffstat (limited to 'src')
-rw-r--r--src/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/setup.c b/src/setup.c
index f09a908..83c5504 100644
--- a/src/setup.c
+++ b/src/setup.c
@@ -329,7 +329,7 @@ find_design_directory (TGallerySetup *setup)
if (IS_DIR_SEP (*setup->design_setup_file)) {
pth = g_path_get_dirname (setup->design_setup_file);
- if (g_access (pth, R_OK))
+ if (g_access (pth, R_OK) == 0)
return pth;
} else {
base_dir = g_path_get_dirname (setup->setup_xml_path);