test: properly initialize variables

This commit is contained in:
Georges Basile Stavracas Neto
2018-02-26 23:39:15 -03:00
parent bc3a41d96c
commit c51957f214
+4 -4
View File
@@ -34,10 +34,10 @@
static void
event_new (void)
{
g_autoptr (ECalComponent) component;
g_autoptr (GcalEvent) event;
g_autoptr (ESource) source;
g_autoptr (GError) error;
g_autoptr (ECalComponent) component = NULL;
g_autoptr (GcalEvent) event = NULL;
g_autoptr (ESource) source = NULL;
g_autoptr (GError) error = NULL;
component = e_cal_component_new_from_string (STUB_EVENT);
source = e_source_new_with_uid ("stub", NULL, &error);