mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user