mapper, update, ...: use g_build_filename(), G_DIR_SEPARATOR, ...
Try to be as portable as possible, use GLib path name functions and macros.
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
char *parsePath(char *path)
|
||||
{
|
||||
#ifndef WIN32
|
||||
if (path[0] != '/' && path[0] != '~') {
|
||||
if (!g_path_is_absolute(path) && path[0] != '~') {
|
||||
g_warning("\"%s\" is not an absolute path", path);
|
||||
return NULL;
|
||||
} else if (path[0] == '~') {
|
||||
|
||||
Reference in New Issue
Block a user