mirror of https://github.com/tstellar/bygfoot.git
Support dir argument bugfix.
This commit is contained in:
parent
23cfbb3f0c
commit
c8a9427807
|
@ -80,7 +80,7 @@ file_add_support_directory_recursive (const gchar *directo
|
||||||
G_DIR_SEPARATOR_S, file);
|
G_DIR_SEPARATOR_S, file);
|
||||||
|
|
||||||
if(g_file_test(fullpath, G_FILE_TEST_IS_DIR))
|
if(g_file_test(fullpath, G_FILE_TEST_IS_DIR))
|
||||||
file_add_support_directory_recursive(fullpath);
|
file_add_support_directory_recursive(fullpath);
|
||||||
|
|
||||||
g_free(fullpath);
|
g_free(fullpath);
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,7 +144,9 @@ main_parse_cl_arguments(gint *argc, gchar ***argv)
|
||||||
|
|
||||||
if(support_dir != NULL)
|
if(support_dir != NULL)
|
||||||
{
|
{
|
||||||
gchar *fullpath = g_path_get_dirname(support_dir);
|
gchar *fullpath = (support_dir[strlen(support_dir)] == G_DIR_SEPARATOR) ?
|
||||||
|
g_path_get_dirname(support_dir) :
|
||||||
|
g_strdup_printf("%s%s", support_dir, G_DIR_SEPARATOR_S);
|
||||||
file_add_support_directory_recursive(fullpath);
|
file_add_support_directory_recursive(fullpath);
|
||||||
g_free(fullpath);
|
g_free(fullpath);
|
||||||
g_free(support_dir);
|
g_free(support_dir);
|
||||||
|
|
Loading…
Reference in New Issue