From 0285dbe04fe5b0c01e0faf8bada9ff1d46b3c7b0 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 21 Jan 2026 17:03:20 -0300 Subject: [PATCH] event-editor/organizer-row: Fix use before NULL check Fallout from my changes to the previous commit. --- src/gui/event-editor/gcal-organizer-row.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/event-editor/gcal-organizer-row.c b/src/gui/event-editor/gcal-organizer-row.c index 9fa0718b..8ac6374c 100644 --- a/src/gui/event-editor/gcal-organizer-row.c +++ b/src/gui/event-editor/gcal-organizer-row.c @@ -82,13 +82,14 @@ static gchar* generate_subtitle (GcalOrganizerRow *self, GcalEventOrganizer *organizer) { + g_autofree const gchar *name_with_email = NULL; g_autofree const gchar *email = NULL; - g_autofree const gchar *name_with_email = g_strdup_printf ("%s (%s)", gcal_event_organizer_get_name (organizer), email); if (organizer == NULL) return NULL; email = gcal_get_email_from_mailto_uri (gcal_event_organizer_get_uri (organizer)); + name_with_email = g_strdup_printf ("%s (%s)", gcal_event_organizer_get_name (organizer), email); return g_strdup (name_with_email); }