diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-12-27 14:32:48 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2011-01-03 01:48:04 +0100 |
commit | 320fd69923cf4a647869a89453d01acf81f479e0 (patch) | |
tree | 922dbedc098b15d87b99cb055769166f6d09fb88 /pidl/lib | |
parent | 4d5c0c3ec5a0c7a95b25eed5149e8cf665f295c9 (diff) | |
download | samba-320fd69923cf4a647869a89453d01acf81f479e0.tar.gz samba-320fd69923cf4a647869a89453d01acf81f479e0.tar.bz2 samba-320fd69923cf4a647869a89453d01acf81f479e0.zip |
Use fail_on_null.
Diffstat (limited to 'pidl/lib')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/Python.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm index 70289e1636..60352ae8d7 100644 --- a/pidl/lib/Parse/Pidl/Samba4/Python.pm +++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm @@ -1065,7 +1065,7 @@ sub ConvertObjectFromPythonLevel($$$$$$$$) my $union_type = mapTypeName($nl->{DATA_TYPE}); $self->pidl("$union_type *$switch_ptr;"); $self->pidl("$switch_ptr = py_export_" . $nl->{DATA_TYPE} . "($mem_ctx, $switch, $py_var);"); - $self->pidl("if ($switch_ptr == NULL) { $fail }"); + $self->fail_on_null($switch_ptr, $fail); $self->assign($var_name, "$switch_ptr"); $self->deindent; $self->pidl("}"); |