mirror of
https://github.com/samba-team/samba.git
synced 2025-12-16 00:23:52 +03:00
the out substructure is not empty if there is a return from the
function
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user