1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

the out substructure is not empty if there is a return from the

function
This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent f50d4b602a
commit d18a08a870

View File

@ -200,11 +200,17 @@ sub HeaderFunctionInOut_needed($$)
{
my($fn) = shift;
my($prop) = shift;
if ($prop eq "out" && $fn->{RETURN_TYPE} && $fn->{RETURN_TYPE} ne "void") {
return 1;
}
foreach my $e (@{$fn->{DATA}}) {
if (util::has_property($e, $prop)) {
return 1;
}
}
return undef;
}