diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2019-02-24 19:31:07 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-03-04 22:41:01 +0000 |
commit | f0ecfd384c279c94b2c341b638426cf1cbd797ce (patch) | |
tree | c20409cd5c44c1f782ed59fe34ccbde0e924c5f9 /pidl | |
parent | c942614eaed392736f4037cb3663ea9e38c7d36c (diff) | |
download | samba-f0ecfd384c279c94b2c341b638426cf1cbd797ce.tar.gz |
pidl/Python: initialise a datablob
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Mar 4 22:41:01 UTC 2019 on sn-devel-144
Diffstat (limited to 'pidl')
-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 efa80d7cdd1..26a1d9b4fc6 100644 --- a/pidl/lib/Parse/Pidl/Samba4/Python.pm +++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm @@ -313,7 +313,7 @@ sub PythonStruct($$$$$$) $self->pidl("{"); $self->indent; $self->pidl("$cname *object = ($cname *)pytalloc_get_ptr(py_obj);"); - $self->pidl("DATA_BLOB blob;"); + $self->pidl("DATA_BLOB blob = {.data = NULL, .length = 0};"); $self->pidl("Py_ssize_t blob_length = 0;"); $self->pidl("enum ndr_err_code err;"); $self->pidl("const char * const kwnames[] = { \"data_blob\", \"allow_remaining\", NULL };"); |