From 3a9a3bc38d7d26fa911c9baef6352c16c82b5642 Mon Sep 17 00:00:00 2001 From: gunnar_g Date: Wed, 10 Dec 2008 13:44:07 +0000 Subject: [PATCH] removed unnecessary assign. I could just directly change the current string. --- src/treeview.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/treeview.c b/src/treeview.c index bac54077..55195063 100644 --- a/src/treeview.c +++ b/src/treeview.c @@ -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