summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/pidl/ndr.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/build/pidl/ndr.pm b/source4/build/pidl/ndr.pm
index 5fafab3cd0..febf292c8a 100644
--- a/source4/build/pidl/ndr.pm
+++ b/source4/build/pidl/ndr.pm
@@ -132,7 +132,8 @@ sub GetElementLevelTable($)
}
}
- if (my $hdr_size = util::has_property($e, "subcontext")) {
+ if (defined(util::has_property($e, "subcontext"))) {
+ my $hdr_size = util::has_property($e, "subcontext");
my $subsize = util::has_property($e, "subcontext_size");
if (not defined($subsize)) {
$subsize = -1;
@@ -178,7 +179,7 @@ sub can_contain_deferred
return 1 if ($e->{POINTERS});
return 0 if (typelist::is_scalar($e->{TYPE}));
- return 0 if (util::has_property($e, "subcontext"));
+ return 0 if (defined(util::has_property($e, "subcontext")));
return 1 unless (typelist::hasType($e->{TYPE})); # assume the worst
my $type = typelist::getType($e->{TYPE});