[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-565-g88dd6af

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Mar 19 15:30:41 GMT 2009


Hi, Metze!

On Thu, Mar 19, 2009 at 08:02:57AM -0500, Stefan Metzmacher wrote:
>  
> +	bytes = TALLOC_ARRAY(talloc_tos(), uint8_t, 0); /* padding */
> +	if (bytes == NULL) {
> +		goto fail;
> +	}
> +

Is this right? Long ago we had the big debate about
talloc(0) returning NULL or not. I don't remember the real
outcome, but we still have the comment

> Disable these now we have checked all code paths and ensured
> NULL returns on zero request. JRA.

in source3/include/smb_macros.h

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090319/f96dc564/attachment.bin


More information about the samba-technical mailing list