Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37909549
en ru br
ALT Linux repositórios
S:2.23.0.g6b126a4-alt1_3.4

Group :: Sistema/Bibliotecas
RPM: libhugetlbfs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: libhugetlbfs.tests-malloc.patch
Download


Test malloc, set unused to NULL if it fails
---
 tests/heapshrink-helper.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
--- a/tests/heapshrink-helper.c
+++ b/tests/heapshrink-helper.c
@@ -21,5 +21,7 @@
 
 static void __attribute__((constructor)) setup_heapshrink_helper(void)
 {
-	(void) malloc(1);
+	void *unused = malloc(1);
+	if (unused)
+		unused = NULL;
 }
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009