From 1e0cb682635b4a8865cbac139b025b715ee24f8f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 28 Aug 2006 17:18:41 +0000 Subject: r17889: allocate a valid element where the pointer can point to, fix c++ warnings metze (This used to be commit b15e4c7cfa4df3dc429945e4d330a8a9766eb1a6) --- source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/pidl/lib/Parse/Pidl/Samba4/NDR') diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index 912c4b74f9..bf5e8fe441 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -1122,7 +1122,7 @@ sub ParsePtrPull($$$$) # We allocate an array twice # - once just to indicate that it's there, # - then the real allocation... - pidl "NDR_PULL_ALLOC_SIZE($ndr, $var_name, 1);"; + pidl "NDR_PULL_ALLOC($ndr, $var_name);"; } #pidl "memset($var_name, 0, sizeof($var_name));"; -- cgit