From 46182233c031c480b5d4d1f6109ab28a6199d369 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 12 Feb 2010 14:45:04 +0000 Subject: [PATCH] analysis: Conformance tests Initialize ClutterPathNote members to 0 using "{ 0, }". --- tests/conform/test-path.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/conform/test-path.c b/tests/conform/test-path.c index 29b79ef24..30a4d2c4a 100644 --- a/tests/conform/test-path.c +++ b/tests/conform/test-path.c @@ -46,7 +46,7 @@ static const ClutterPathNode path_nodes[] = static gboolean path_test_add_move_to (CallbackData *data) { - ClutterPathNode node; + ClutterPathNode node = { 0, }; node.type = CLUTTER_PATH_MOVE_TO; node.points[0].x = 1; @@ -62,7 +62,7 @@ path_test_add_move_to (CallbackData *data) static gboolean path_test_add_line_to (CallbackData *data) { - ClutterPathNode node; + ClutterPathNode node = { 0, }; node.type = CLUTTER_PATH_LINE_TO; node.points[0].x = 3; @@ -78,7 +78,7 @@ path_test_add_line_to (CallbackData *data) static gboolean path_test_add_curve_to (CallbackData *data) { - ClutterPathNode node; + ClutterPathNode node = { 0, }; node.type = CLUTTER_PATH_CURVE_TO; node.points[0].x = 5; @@ -101,7 +101,7 @@ path_test_add_curve_to (CallbackData *data) static gboolean path_test_add_close (CallbackData *data) { - ClutterPathNode node; + ClutterPathNode node = { 0, }; node.type = CLUTTER_PATH_CLOSE; @@ -115,7 +115,7 @@ path_test_add_close (CallbackData *data) static gboolean path_test_add_rel_move_to (CallbackData *data) { - ClutterPathNode node; + ClutterPathNode node = { 0, }; node.type = CLUTTER_PATH_REL_MOVE_TO; node.points[0].x = 11; @@ -131,7 +131,7 @@ path_test_add_rel_move_to (CallbackData *data) static gboolean path_test_add_rel_line_to (CallbackData *data) { - ClutterPathNode node; + ClutterPathNode node = { 0, }; node.type = CLUTTER_PATH_REL_LINE_TO; node.points[0].x = 13; @@ -147,7 +147,7 @@ path_test_add_rel_line_to (CallbackData *data) static gboolean path_test_add_rel_curve_to (CallbackData *data) { - ClutterPathNode node; + ClutterPathNode node = { 0, }; node.type = CLUTTER_PATH_REL_CURVE_TO; node.points[0].x = 15;