1
1
openmpi/test/util
Brian Barrett e9e4d2a4bc Handle asprintf errors with opal_asprintf wrapper
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>
2018-10-08 16:43:53 -07:00
..
bipartite_graph.c util: move graph solver from usnic to util 2017-09-15 15:08:47 -07:00
Makefile.am Remove the orte_nidmap test 2018-01-16 11:47:44 -08:00
ompi_numtostr.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
opal_argv.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
opal_basename.c Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
opal_bit_ops.c Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
opal_error.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
opal_if.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
opal_os_create_dirpath.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
opal_os_path.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
opal_path_nfs.c Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
opal_timer.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
orte_session_dir.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
orte_universe_setup_file_io.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00