aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--uzbl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/uzbl.c b/uzbl.c
index 2e26e8f..288aaae 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -441,12 +441,7 @@ new_action(const gchar *name, const gchar *param) {
static bool
file_exists (const char * filename) {
- FILE *file = fopen (filename, "r");
- if (file) {
- fclose (file);
- return true;
- }
- return false;
+ return (access(filename, F_OK) == 0);
}
void