1
0
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:
Jelmer Vernooij 2005-03-08 22:24:47 +00:00 committed by Gerald (Jerry) Carter
parent 67a2b09126
commit 7ecc2e6130

View File

@ -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");
}
}