mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
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
This commit is contained in:
parent
c942614eae
commit
f0ecfd384c
@ -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 };");
|
||||
|
Loading…
Reference in New Issue
Block a user