Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37837791
en ru br
ALT Linux repos
S:4.19.0-alt3
5.0: 1.7-alt2
4.1: 1.1-alt1
4.0: 1.1-alt1
3.0: 0.2.13-alt1

Group :: System/Libraries
RPM: libtasn1

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: Fix-build-with-gcc11.patch
Download


From 077568aacd5e1ba2f31c2832ee59a741b9b9fa75 Mon Sep 17 00:00:00 2001
From: Mikhail Efremov <sem@altlinux.org>
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
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin