summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-12-27 14:32:48 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-01-03 01:48:04 +0100
commit320fd69923cf4a647869a89453d01acf81f479e0 (patch)
tree922dbedc098b15d87b99cb055769166f6d09fb88 /pidl
parent4d5c0c3ec5a0c7a95b25eed5149e8cf665f295c9 (diff)
downloadsamba-320fd69923cf4a647869a89453d01acf81f479e0.tar.gz
samba-320fd69923cf4a647869a89453d01acf81f479e0.tar.bz2
samba-320fd69923cf4a647869a89453d01acf81f479e0.zip
Use fail_on_null.
Diffstat (limited to 'pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/Python.pm2
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("}");