1
1
mirror of https://github.com/tstellar/bygfoot.git synced 2025-01-20 19:08:33 +01:00

fixed warnings.

This commit is contained in:
gunnar_g 2008-12-16 12:54:00 +00:00
parent 9b1534b87c
commit e40e37beb2

View File

@ -303,17 +303,19 @@ misc_strip_definitions_root(gchar *directory)
{
gchar **vector;
GList *list = root_definitions_directories;
gchar *buf;
while (list!=NULL)
{
if (g_str_has_prefix(directory, (gchar*)list->data))
{
vector = g_strsplit(directory, (gchar*)list->data,-1);
return g_strdup((gchar*)vector[g_strv_length(vector)-1]);
buf = g_strdup((gchar*)vector[g_strv_length(vector)-1]);
g_strfreev(vector);
return buf;
}
list = list->next;
}
g_strfreev(vector);
return "";
}