event-editor/organizer-row: Fix use before NULL check

Fallout from my changes to the previous commit.
This commit is contained in:
Georges Basile Stavracas Neto
2026-01-21 17:04:49 -03:00
parent f8a9ea1973
commit 0285dbe04f
+2 -1
View File
@@ -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);
}