From c51957f214b7b6f56d98501ec7232d3be99a6dde Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 26 Feb 2018 23:39:15 -0300 Subject: [PATCH] test: properly initialize variables --- tests/test-event.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test-event.c b/tests/test-event.c index 08d908c6..18c10853 100644 --- a/tests/test-event.c +++ b/tests/test-event.c @@ -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);