diff src/ui_fileops.c @ 1356:681e79dd0820

Slightly modify access_file() and use it to test profile files existence and read access.
author zas_
date Sun, 01 Mar 2009 15:41:51 +0000
parents e8f21b91885d
children 721ffb823d6e
line wrap: on
line diff
--- a/src/ui_fileops.c	Sun Mar 01 15:28:06 2009 +0000
+++ b/src/ui_fileops.c	Sun Mar 01 15:41:51 2009 +0000
@@ -424,7 +424,7 @@
 	gchar *sl;
 	gint ret;
 
-	if (!s) return FALSE;
+	if (!s || !s[0]) return FALSE;
 
 	sl = path_from_utf8(s);
 	ret = (access(sl, mode) == 0);