[gnome-calendar] test: properly initialize variables
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] test: properly initialize variables
- Date: Tue, 27 Feb 2018 02:44:17 +0000 (UTC)
commit c51957f214b7b6f56d98501ec7232d3be99a6dde
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Feb 26 23:39:15 2018 -0300
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]