svn commit: samba r18696 - in
branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3: .
jelmer at samba.org
jelmer at samba.org
Tue Sep 19 22:48:08 GMT 2006
Author: jelmer
Date: 2006-09-19 22:48:08 +0000 (Tue, 19 Sep 2006)
New Revision: 18696
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18696
Log:
Zero initialize ref ptrs.
Modified:
branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
Changeset:
Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
===================================================================
--- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm 2006-09-19 22:47:30 UTC (rev 18695)
+++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm 2006-09-19 22:48:08 UTC (rev 18696)
@@ -38,9 +38,9 @@
if ($l->{TYPE} eq "ARRAY") {
my $size = ParseExpr($l->{SIZE_IS}, $env);
- pidl "$name = talloc_array_size($mem_ctx, sizeof(*$name), $size);";
+ pidl "$name = talloc_zero_size($mem_ctx, sizeof(*$name) * $size);";
} else {
- pidl "$name = talloc_size($mem_ctx, sizeof(*$name));";
+ pidl "$name = talloc_zero_size($mem_ctx, sizeof(*$name));";
}
pidl "if ($name == NULL) {";
More information about the samba-cvs
mailing list