From c258393af69769b48b4f4d3c5f18d4a0ebf847bd Mon Sep 17 00:00:00 2001 From: hugo303 Date: Mon, 10 Nov 2008 21:44:52 +0000 Subject: [PATCH] * Handle NULL in srunner_add_suite(). Fixes #1624887 git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@440 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- src/check.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/check.c b/src/check.c index b86e9fa..da07684 100644 --- a/src/check.c +++ b/src/check.c @@ -276,6 +276,9 @@ SRunner *srunner_create (Suite *s) void srunner_add_suite (SRunner *sr, Suite *s) { + if (s == NULL) + return; + list_add_end(sr->slst, s); } -- 2.40.0