git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d5c0c3
)
Use fail_on_null.
author
Jelmer Vernooij
<jelmer@samba.org>
Mon, 27 Dec 2010 13:32:48 +0000
(14:32 +0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Mon, 3 Jan 2011 00:48:04 +0000
(
01:48
+0100)
pidl/lib/Parse/Pidl/Samba4/Python.pm
patch
|
blob
|
history
diff --git
a/pidl/lib/Parse/Pidl/Samba4/Python.pm
b/pidl/lib/Parse/Pidl/Samba4/Python.pm
index 70289e16365005b5da37262a9312ee1df2858565..60352ae8d7f51b5578308c48a6026497c8338c0a 100644
(file)
--- 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("}");