r17889: allocate a valid element where the pointer can point to,
authorStefan Metzmacher <metze@samba.org>
Mon, 28 Aug 2006 17:18:41 +0000 (17:18 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:16:52 +0000 (14:16 -0500)
fix c++ warnings

metze
(This used to be commit b15e4c7cfa4df3dc429945e4d330a8a9766eb1a6)

source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm

index 912c4b74f9e7930c72db1fae247c261db9725e07..bf5e8fe44120eaff161b53338e82eb3032b88b4d 100644 (file)
@@ -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));";