diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-11-22 22:06:15 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-26 10:32:59 +0100 |
commit | dec1435a42e16269d1e343707e924256ee8a5050 (patch) | |
tree | 41a856eca2f4d616d931a3146316eeb51e53bebd /source4/libnet | |
parent | ad19aa6331ab44516afa82434f125120172b3dda (diff) | |
download | samba-dec1435a42e16269d1e343707e924256ee8a5050.tar.gz samba-dec1435a42e16269d1e343707e924256ee8a5050.tar.bz2 samba-dec1435a42e16269d1e343707e924256ee8a5050.zip |
s4:libnet/py_net.c - initialise optional keyword arguments
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/py_net.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c index ebfb2ba4d2..a8db2976a6 100644 --- a/source4/libnet/py_net.c +++ b/source4/libnet/py_net.c @@ -353,6 +353,8 @@ static PyObject *py_net_vampire(py_net_Object *self, PyObject *args, PyObject *k PyObject *ret; struct libnet_Vampire r; + ZERO_STRUCT(r); + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|z", discard_const_p(char *, kwnames), &r.in.domain_name, &r.in.targetdir)) { return NULL; @@ -469,7 +471,7 @@ static PyObject *py_net_replicate_chunk(py_net_Object *self, PyObject *args, PyO const char *kwnames[] = { "state", "level", "ctr", "schema", "req_level", "req", NULL }; - PyObject *py_state, *py_ctr, *py_schema, *py_req; + PyObject *py_state, *py_ctr, *py_schema = Py_None, *py_req = Py_None; struct replicate_state *s; unsigned level; unsigned req_level = 0; |