From 077568aacd5e1ba2f31c2832ee59a741b9b9fa75 Mon Sep 17 00:00:00 2001 From: Mikhail Efremov Date: Wed, 22 Sep 2021 18:58:55 +0300 Subject: [PATCH] Fix build with gcc11 --- tests/Test_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Test_tree.c b/tests/Test_tree.c index 98fb251..9155d74 100644 --- a/tests/Test_tree.c +++ b/tests/Test_tree.c @@ -711,7 +711,7 @@ main (int argc, char *argv[]) if (((test->errorNumber != ASN1_SUCCESS) && (str_p != NULL)) || ((test->errorNumber == ASN1_SUCCESS) && (str_p == NULL)) || ((test->errorNumber == ASN1_SUCCESS) - && (strcmp (str_p, test->par2)))) + && ((str_p != NULL) && strcmp (str_p, test->par2)))) { errorCounter++; printf ("ERROR in %d:\n", test->line); -- 2.33.0