e9e4d2a4bc
The Open MPI code base assumed that asprintf always behaved like the FreeBSD variant, where ptr is set to NULL on error. However, the C standard (and Linux) only guarantee that the return code will be -1 on error and leave ptr undefined. Rather than fix all the usage in the code, we use opal_asprintf() wrapper instead, which guarantees the BSD-like behavior of ptr always being set to NULL. In addition to being correct, this will fix many, many warnings in the Open MPI code base. Signed-off-by: Brian Barrett <bbarrett@amazon.com> |
||
---|---|---|
.. | ||
debuggers.h | ||
dlopen_test.c | ||
Makefile.am | ||
MPI_Handles_interface.txt | ||
mpihandles_interface.h | ||
msgq_interface.h | ||
ompi_common_dll_defs.h | ||
ompi_common_dll.c | ||
ompi_debugger_canary.c | ||
ompi_debuggers.c | ||
ompi_mpihandles_dll_defs.h | ||
ompi_mpihandles_dll.c | ||
ompi_msgq_dll_defs.h | ||
ompi_msgq_dll.c | ||
predefined_gap_test.c | ||
predefined_pad_test.c | ||
tv-debugger-attach.txt |