Commit 08a51983 authored by Tim Wickberg's avatar Tim Wickberg
Browse files

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.
parent d6e41189
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment