[evolution/wip/mcrha/eds-libical-glib] Address "may be used uninitialized" compiler warnings
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/mcrha/eds-libical-glib] Address "may be used uninitialized" compiler warnings
- Date: Mon, 1 Apr 2019 16:37:55 +0000 (UTC)
commit 40d273eba20337f8c36fbec19d2b177573fb0c35
Author: Milan Crha <mcrha redhat com>
Date: Mon Apr 1 18:38:55 2019 +0200
Address "may be used uninitialized" compiler warnings
src/calendar/gui/e-cal-model-tasks.c | 4 ++--
src/calendar/gui/e-comp-editor-page-reminders.c | 2 +-
src/calendar/gui/e-day-view-main-item.c | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/calendar/gui/e-cal-model-tasks.c b/src/calendar/gui/e-cal-model-tasks.c
index 978f530361..4f01a83a31 100644
--- a/src/calendar/gui/e-cal-model-tasks.c
+++ b/src/calendar/gui/e-cal-model-tasks.c
@@ -303,7 +303,7 @@ static gpointer
get_url (ECalModelComponent *comp_data)
{
ICalProperty *prop;
- const gchar *url;
+ const gchar *url = NULL;
prop = i_cal_component_get_first_property (comp_data->icalcomp, I_CAL_URL_PROPERTY);
if (prop) {
@@ -318,7 +318,7 @@ static gpointer
get_location (ECalModelComponent *comp_data)
{
ICalProperty *prop;
- const gchar *location;
+ const gchar *location = NULL;
prop = i_cal_component_get_first_property (comp_data->icalcomp, I_CAL_LOCATION_PROPERTY);
if (prop) {
diff --git a/src/calendar/gui/e-comp-editor-page-reminders.c b/src/calendar/gui/e-comp-editor-page-reminders.c
index afec40bcc8..ab776992df 100644
--- a/src/calendar/gui/e-comp-editor-page-reminders.c
+++ b/src/calendar/gui/e-comp-editor-page-reminders.c
@@ -1420,7 +1420,7 @@ ecep_reminders_fill_widgets (ECompEditorPage *page,
comp = e_cal_component_new_from_icalcomponent (i_cal_component_new_clone (component));
if (comp && e_cal_component_has_alarms (comp)) {
GSList *alarms, *link;
- gint alarm_type;
+ gint alarm_type = ALARM_NONE;
alarms = e_cal_component_get_alarm_uids (comp);
diff --git a/src/calendar/gui/e-day-view-main-item.c b/src/calendar/gui/e-day-view-main-item.c
index 712f070773..39e93634fe 100644
--- a/src/calendar/gui/e-day-view-main-item.c
+++ b/src/calendar/gui/e-day-view-main-item.c
@@ -788,13 +788,13 @@ day_view_main_item_draw_day_event (EDayViewMainItem *main_item,
("%2i:%02i-%2i:%02i",
start_display_hour, start_minute,
end_display_hour, end_minute);
- } else {
- if (format_time) {
+ } else if (format_time) {
/* 24 hour format without end time. */
text = g_strdup_printf
("%2i:%02i",
start_display_hour, start_minute);
- }
+ } else {
+ text = NULL;
}
} else {
if (day_view->show_event_end_times && show_span) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]