Commit e944df5c authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Add xcalloc() macro and convert slurm_xmalloc into slurm_xcalloc() function.

Use this instead of handling the multiplication ourselves. This lets us
check for potential problems from integer overflow, and IMNSHO makes the
code look a lot tidier.

Rework xmalloc() and xmalloc_nz() macros in terms of slurm_xcalloc().

Bug 6310.
parent 19f333f1
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