From 44e12da104615bed63f689e62e23f5882bf32231 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 19 Mar 2025 12:21:13 -0300 Subject: [PATCH] gui/event: Initialize autoptr variables A good practice in general. --- src/gui/gcal-event-widget.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/gcal-event-widget.c b/src/gui/gcal-event-widget.c index ceab5e85..605d3823 100644 --- a/src/gui/gcal-event-widget.c +++ b/src/gui/gcal-event-widget.c @@ -234,9 +234,12 @@ static void gcal_event_widget_set_event_tooltip (GcalEventWidget *self, GcalEvent *event) { - g_autoptr (GDateTime) tooltip_start, tooltip_end; - g_autofree gchar *start, *end, *escaped_summary; + g_autoptr (GDateTime) tooltip_start = NULL; + g_autoptr (GDateTime) tooltip_end = NULL; + g_autofree gchar *escaped_summary = NULL; g_autofree gchar *location = NULL; + g_autofree gchar *start = NULL; + g_autofree gchar *end = NULL; GString *tooltip_mesg; gboolean allday, multiday, is_ltr; guint description_len;