From d6f8d5ca382d811589dee9ba57c5f4aa1b435d48 Mon Sep 17 00:00:00 2001 From: Julio Merino Date: Tue, 26 Nov 2013 22:53:54 -0500 Subject: [PATCH] Properly initialize kyua_tap_summary_t As I didn't write an initialization function for this data type (bad me), all locations instantiating it must be careful to file in all details correctly. Do so now. This fixes breakage observed in NetBSD. --- tap_parser_test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tap_parser_test.c b/tap_parser_test.c index 3d6298ce..08eba2dd 100644 --- a/tap_parser_test.c +++ b/tap_parser_test.c @@ -101,8 +101,9 @@ ATF_TC_BODY(parse__ok__pass, tc) "garbage line\n" "ok - 3 This test passed\n"; - kyua_tap_summary_t summary; + kyua_tap_summary_t summary; memset(&summary, 0, sizeof(summary)); summary.parse_error = NULL; + summary.bail_out = false; summary.first_index = 1; summary.last_index = 3; summary.ok_count = 3; @@ -124,8 +125,9 @@ ATF_TC_BODY(parse__ok__fail, tc) "not ok - 4 This test failed\n" "ok - 5 This test passed\n"; - kyua_tap_summary_t summary; + kyua_tap_summary_t summary; memset(&summary, 0, sizeof(summary)); summary.parse_error = NULL; + summary.bail_out = false; summary.first_index = 1; summary.last_index = 5; summary.ok_count = 2;