[Pkg-voip-commits] [bctoolbox] 23/57: Do not print test if null

daniel at gnoutcheff.name daniel at gnoutcheff.name
Thu Mar 30 04:31:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

gnoutchd-guest pushed a commit to branch debian/sid
in repository bctoolbox.

commit 6ef0d0098dbffe2a9e174c7a74149702300c8b3c
Author: Sylvain Berfini <sylvain.berfini at belledonne-communications.com>
Date:   Mon Jan 2 16:02:49 2017 +0100

    Do not print test if null
---
 src/tester.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/tester.c b/src/tester.c
index 1b5d92e..4256efe 100644
--- a/src/tester.c
+++ b/src/tester.c
@@ -229,7 +229,9 @@ void bc_tester_list_tests(const char *suite_name) {
 	int j;
 	for( j = 0; j < bc_tester_nb_tests(suite_name); j++) {
 		const char *test_name = bc_tester_test_name(suite_name, j);
-		bc_tester_printf(bc_printf_verbosity_info, "%s", test_name);
+		if (test_name) {
+			bc_tester_printf(bc_printf_verbosity_info, "%s", test_name);
+		}
 	}
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/bctoolbox.git



More information about the Pkg-voip-commits mailing list