Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
libhugetlbfs
libhugetlbfs.tests-malloc.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libhugetlbfs.tests-malloc.patch of Package libhugetlbfs
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; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor