mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r5697: Give an error message when a ref pointer is NULL (requested by tpot)
This commit is contained in:
parent
67a2b09126
commit
7ecc2e6130
@ -1793,6 +1793,9 @@ sub ParseFunctionPush($)
|
||||
|
||||
foreach my $e (@{$fn->{ELEMENTS}}) {
|
||||
if (util::has_property($e, "in")) {
|
||||
if (util::has_property($e, "ref")) {
|
||||
check_null_pointer("*r->in.$e->{NAME}");
|
||||
}
|
||||
ParseFunctionElementPush($e, "in");
|
||||
}
|
||||
}
|
||||
@ -1803,6 +1806,9 @@ sub ParseFunctionPush($)
|
||||
|
||||
foreach my $e (@{$fn->{ELEMENTS}}) {
|
||||
if (util::has_property($e, "out")) {
|
||||
if (util::has_property($e, "ref")) {
|
||||
check_null_pointer("*r->out.$e->{NAME}");
|
||||
}
|
||||
ParseFunctionElementPush($e, "out");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user