Fix segfault when block_map_size is zero.
If block_map_size is zero (as seen on FreeBSD when not using HWLOC), xmalloc(0) will return NULL. Writing to str[0] then is invalid. Bug 4845.
Please register or sign in to comment
If block_map_size is zero (as seen on FreeBSD when not using HWLOC), xmalloc(0) will return NULL. Writing to str[0] then is invalid. Bug 4845.