We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a419f7d commit 73a5667Copy full SHA for 73a5667
hwloc/components.c
@@ -94,8 +94,7 @@ static hwloc_dlhandle hwloc_dlopenext(const char *_filename)
94
{
95
hwloc_dlhandle handle;
96
char *filename = NULL;
97
- (void) asprintf(&filename, "%s.so", _filename);
98
- if (!filename)
+ if (asprintf(&filename, "%s.so", _filename) < 0)
99
return NULL;
100
handle = dlopen(filename, RTLD_NOW|RTLD_LOCAL);
101
free(filename);
0 commit comments