summaryrefslogtreecommitdiff
path: root/pidl/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-08-25 11:02:52 +0200
committerStefan Metzmacher <metze@samba.org>2010-08-28 10:59:19 +0200
commit94faf0ccbe061681de0a529b5cfd61da10d5226a (patch)
tree0493fbe8629507b5b30e445b772bbae77a6005e8 /pidl/lib
parentaa3b75ad1fa60dbf1ea3bd61782c59b39020b2e3 (diff)
downloadsamba-94faf0ccbe061681de0a529b5cfd61da10d5226a.tar.gz
samba-94faf0ccbe061681de0a529b5cfd61da10d5226a.tar.bz2
samba-94faf0ccbe061681de0a529b5cfd61da10d5226a.zip
pidl:NDR: [in,out,string] doesn't need to pointers
metze
Diffstat (limited to 'pidl/lib')
-rw-r--r--pidl/lib/Parse/Pidl/NDR.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/NDR.pm b/pidl/lib/Parse/Pidl/NDR.pm
index 2358a25956..197a92998c 100644
--- a/pidl/lib/Parse/Pidl/NDR.pm
+++ b/pidl/lib/Parse/Pidl/NDR.pm
@@ -104,7 +104,7 @@ sub GetElementLevelTable($$)
if (has_property($e, "out")) {
my $needptrs = 1;
- if (has_property($e, "string")) { $needptrs++; }
+ if (has_property($e, "string") and not has_property($e, "in")) { $needptrs++; }
if ($#bracket_array >= 0) { $needptrs = 0; }
warning($e, "[out] argument `$e->{NAME}' not a pointer") if ($needptrs > $e->{POINTERS});