removed unnecessary assign. I could just directly change the current string.

This commit is contained in:
gunnar_g 2008-12-10 13:44:07 +00:00
parent 40d31060d8
commit 3a9a3bc38d
1 changed files with 1 additions and 2 deletions

View File

@ -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, &current_country[1]);
current_country = g_strdup(buf);
sprintf(current_country, "%.*s", strlen(current_country) - 1, &current_country[1]);
}
dir_split_up = g_strsplit_set (current_country, "\\/", -1);
for (j=0; j<g_strv_length(dir_split_up); j++)