diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-09-19 22:48:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:19:03 -0500 |
commit | d094a421d3e85d4c27119f6cd4fd3e8e164f2f4c (patch) | |
tree | 4d126909210def8976dc101992cee86335bbea04 /source4/pidl/lib/Parse/Pidl/Samba3 | |
parent | b9785235b40ed0506fd920214967f6b0bd9fc659 (diff) | |
download | samba-d094a421d3e85d4c27119f6cd4fd3e8e164f2f4c.tar.gz samba-d094a421d3e85d4c27119f6cd4fd3e8e164f2f4c.tar.bz2 samba-d094a421d3e85d4c27119f6cd4fd3e8e164f2f4c.zip |
r18696: Zero initialize ref ptrs.
(This used to be commit 8de48f62e7840431fe5bfbb1c61daaafcf421ff1)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl/Samba3')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm index 070ccde8ee..928a88ba5e 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm @@ -38,9 +38,9 @@ sub AllocOutVar($$$$) 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) {"; |