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:
parent
f50d4b602a
commit
d18a08a870
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user