In gncFindFile, use g_path_is_absolute instead of file[0]=='/'.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16398 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler
2007-08-07 00:56:40 +00:00
parent 1cce7a24b7
commit a794e15882
+1 -1
View File
@@ -86,7 +86,7 @@ gncReadFile (const char * file, char ** data)
if (!file || file[0] == '\0') return 0;
/* take absolute paths without searching */
if (file[0] != '/')
if (!g_path_is_absolute (file))
filename = gncFindFile (file);
else
filename = g_strdup (file);