mirror of https://github.com/tstellar/bygfoot.git
removed unnecessary assign. I could just directly change the current string.
This commit is contained in:
parent
40d31060d8
commit
3a9a3bc38d
|
@ -2660,8 +2660,7 @@ treeview_create_country_list(const GPtrArray *country_list)
|
|||
if (g_str_has_prefix(current_country,"/")||g_str_has_prefix(current_country,"\\"))
|
||||
{
|
||||
// Strip leading "\\"
|
||||
sprintf(buf, "%.*s", strlen(current_country) - 1, ¤t_country[1]);
|
||||
current_country = g_strdup(buf);
|
||||
sprintf(current_country, "%.*s", strlen(current_country) - 1, ¤t_country[1]);
|
||||
}
|
||||
dir_split_up = g_strsplit_set (current_country, "\\/", -1);
|
||||
for (j=0; j<g_strv_length(dir_split_up); j++)
|
||||
|
|
Loading…
Reference in New Issue