svn commit: samba r23284 - in branches/SAMBA_3_0/source/nsswitch: .

Jeremy Allison jra at samba.org
Fri Jun 1 03:45:52 GMT 2007


On Thu, May 31, 2007 at 11:58:57PM +0000, obnox at samba.org wrote:
> Author: obnox
> Date: 2007-05-31 23:58:56 +0000 (Thu, 31 May 2007)
> New Revision: 23284
> 
> WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23284
> 
> Log:
> Oh what a nasty typo! This gave me some headache,
> with talloc randomly failing.
> 
> Hey, shouldn't TALLOC_ARRAY _not_ return NULL when
> requested to allocate an array with zero entries? :-)

Yes it should at the moment. It should be calling
_talloc_array_zeronull() under the covers in lib/util.c
which explicitly does this.

Was this not happening for you ? I'd like you to
debug that as I can't see a codepath for this not
to happen.

Jeremy.


More information about the samba-cvs mailing list