Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2007-07-24 11:20:25


On Jul 24, 2007, at 11:01 AM, Adrian Knoth wrote:

>> Which is also what POSIX says:
>>
>> http://www.opengroup.org/onlinepubs/009695399/functions/
>> malloc.html
>>
>> I vote with gleb -- return NULL, don't set errno, and be done with
>
> I'd like to second. Just if this is a poll ;)

Sounds like a pretty strong argument to me. This is easy to
implement; I'll do it.

Per Lisandro's comments: I think that if you need a random/valid
value for an STL map (or similar), malloc(0) is not a good idea to
use as a key.

-- 
Jeff Squyres
Cisco Systems