1
1
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
..
2018-09-18 09:38:01 +03:00
2015-06-23 20:59:57 -07:00
2015-04-08 08:52:17 -04:00
2015-05-13 18:31:12 -04:00
2015-06-23 20:59:57 -07:00
2015-06-23 20:59:57 -07:00
2016-11-19 11:44:19 -08:00
2015-06-23 20:59:57 -07:00
2018-09-19 10:39:52 -06:00
2009-08-20 11:42:18 +00:00
2009-08-20 11:42:18 +00:00
2015-07-17 17:36:37 -07:00
2015-06-23 20:59:57 -07:00
2015-12-21 20:49:14 -08:00