[Commits] [SCM] claws branch, master, updated. 4.1.1-78-gec2333b90
paul at claws-mail.org
paul at claws-mail.org
Tue Sep 12 10:11:28 UTC 2023
The branch, master has been updated
via ec2333b902f98d5e917994af8a7ff1ef3c1bdf3a (commit)
from 109fb63a71e7a5a4689f7fe93917b92aa2064ea1 (commit)
Summary of changes:
src/plugins/vcalendar/vcal_folder.c | 14 ++++++--------
src/plugins/vcalendar/vcal_manager.c | 13 +++++--------
2 files changed, 11 insertions(+), 16 deletions(-)
- Log -----------------------------------------------------------------
commit ec2333b902f98d5e917994af8a7ff1ef3c1bdf3a
Author: Paul <paul at claws-mail.org>
Date: Tue Sep 12 11:11:21 2023 +0100
fix bug 4637, 'Segmentation fault when using SUMMARY is empty'
diff --git a/src/plugins/vcalendar/vcal_folder.c b/src/plugins/vcalendar/vcal_folder.c
index 3c37a6464..652ff281f 100644
--- a/src/plugins/vcalendar/vcal_folder.c
+++ b/src/plugins/vcalendar/vcal_folder.c
@@ -1,7 +1,6 @@
/*
* Claws Mail -- a GTK based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2022 Colin Leroy <colin at colino.net> and
- * the Claws Mail team
+ * Copyright (C) 1999-2023 the Claws Mail team and Colin Leroy <colin at colino.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1470,14 +1469,13 @@ gchar* get_item_event_list_for_date(FolderItem *item, EventTime date)
if (days != date)
continue;
prop = icalcomponent_get_first_property((icalcomponent *)fdata->event, ICAL_SUMMARY_PROPERTY);
- if (prop) {
- if (!g_utf8_validate(icalproperty_get_summary(prop), -1, NULL))
- summary = conv_codeset_strdup(icalproperty_get_summary(prop),
+ summary = g_strdup(icalproperty_get_summary(prop));
+ if (summary) {
+ if (!g_utf8_validate(summary, -1, NULL))
+ summary = conv_codeset_strdup(summary,
conv_get_locale_charset_str(), CS_UTF_8);
- else
- summary = g_strdup(icalproperty_get_summary(prop));
} else
- summary = g_strdup("-");
+ summary = g_strdup(_("[no summary]"));
strs = g_slist_prepend(strs, summary);
}
diff --git a/src/plugins/vcalendar/vcal_manager.c b/src/plugins/vcalendar/vcal_manager.c
index 6c17c42cb..1061a1243 100644
--- a/src/plugins/vcalendar/vcal_manager.c
+++ b/src/plugins/vcalendar/vcal_manager.c
@@ -1,7 +1,6 @@
/*
* Claws Mail -- a GTK based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2017 Colin Leroy <colin at colino.net> and
- * the Claws Mail team
+ * Copyright (C) 1999-2023 the Claws Mail team and Colin Leroy <colin at colino.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1330,12 +1329,10 @@ static gchar *write_headers_ical(PrefsAccount *account,
memset(date, 0, sizeof(date));
prop = icalcomponent_get_first_property(ievent, ICAL_SUMMARY_PROPERTY);
- if (prop) {
- summary = g_strdup(icalproperty_get_summary(prop));
- icalproperty_free(prop);
- } else {
- summary = g_strdup("");
- }
+ summary = g_strdup(icalproperty_get_summary(prop));
+ icalproperty_free(prop);
+ if (!summary)
+ summary = g_strdup(_("[no summary]"));
while (strchr(summary, '\n'))
*(strchr(summary, '\n')) = ' ';
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list