[evolution] M!24 - kmail-libs.c:kuri_to_euri: use the return value of g_string_free()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] M!24 - kmail-libs.c:kuri_to_euri: use the return value of g_string_free()
- Date: Mon, 8 Jul 2019 13:20:08 +0000 (UTC)
commit 3a25399c4679ae6e59fe412fa3b5fbacf1074b97
Author: Дилян Палаузов <git-dpa aegee org>
Date: Sun Jul 7 15:01:19 2019 +0000
M!24 - kmail-libs.c:kuri_to_euri: use the return value of g_string_free()
Closes https://gitlab.gnome.org/GNOME/evolution/merge_requests/24
src/mail/importers/kmail-libs.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/src/mail/importers/kmail-libs.c b/src/mail/importers/kmail-libs.c
index ae450e2224..c67dda69db 100644
--- a/src/mail/importers/kmail-libs.c
+++ b/src/mail/importers/kmail-libs.c
@@ -118,7 +118,6 @@ kuri_to_euri (const gchar *k_uri)
gchar *p;
gchar **folders;
GString *e_folder = NULL;
- gchar *val;
gint i;
gboolean dropped = FALSE;
@@ -155,15 +154,8 @@ kuri_to_euri (const gchar *k_uri)
g_string_append_printf (e_folder, "/%s", folder);
}
- if (dropped) {
- val = NULL;
- g_string_free (e_folder, TRUE);
- } else {
- val = e_folder->str;
- g_string_free (e_folder, FALSE);
- }
g_strfreev (folders);
- return val;
+ return g_string_free (e_folder, dropped);
}
static GSList *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]