aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/migration.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/migration.c')
-rw-r--r--calendar/gui/migration.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/calendar/gui/migration.c b/calendar/gui/migration.c
index 8bac76992f..feffff101f 100644
--- a/calendar/gui/migration.c
+++ b/calendar/gui/migration.c
@@ -248,7 +248,7 @@ get_source_name (ESourceGroup *group, const char *path)
int i, j, starting_index;
int num_elements;
gboolean conflict;
- GString *s = g_string_new ("");
+ GString *s = g_string_new (NULL);
for (i = 0; p[i]; i ++) ;
@@ -260,7 +260,6 @@ get_source_name (ESourceGroup *group, const char *path)
/* check if it conflicts */
starting_index = i;
do {
- g_string_assign (s, "");
for (j = starting_index; j < num_elements; j += 2) {
if (j != starting_index)
g_string_append_c (s, '_');